Since useless HitTest checkup function make performance down for
standard cases, Let we make we use custom callback only if
GrabTouchAfterLeave case.
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
PositionUsesPivotPoint = false;
GrabTouchAfterLeave = defaultGrabTouchAfterLeave;
AllowOnlyOwnTouch = defaultAllowOnlyOwnTouch;
-
- // TODO : Can we call this function only for required subclass?
- RegisterHitTestCallback();
}
if (!shown)
set
{
Object.InternalSetPropertyBool(SwigCPtr, View.Property.CaptureAllTouchAfterStart, value);
+
+ // Use custom HitTest callback only if GrabTouchAfterLeave is true.
+ if (value)
+ {
+ RegisterHitTestCallback();
+ }
+ else
+ {
+ UnregisterHitTestCallback();
+ }
+
NotifyPropertyChanged();
}
}