[problem] Incorrect page would be returned from FixedRuler::GatePageFromPosition when continuously panning right
[cause] An unwrapped value is passed in since the scrolling never finishes
[solution] Wrap the value internally before checking position against domain size
Change-Id: I4eaad7a2bfc7c711b53ed310372fd85f6ee77bfb
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
// spacing must be present.
if(mEnabled && fabsf(mSpacing) > Math::MACHINE_EPSILON_1)
{
+ if( wrap )
+ {
+ position = WrapInDomain(position, mDomain.min, mDomain.max);
+ }
page = floor((position - mDomain.min) / mSpacing + 0.5f);
if(wrap)