Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8.3, 6.9.0
Description
Consider the design in the sample attached. Both DragHandler and PinchHandler are handling the same target. The problem with that is for example DragHandler may take over the exclusive grab during PinchHandler is finishing. The result is that target "jumps" to the end position of pinch gesture.
As far as I see, there can be hardly an easy fix. A rather quick fix can be a timer that keeps DragHandler disabled for a short period of time. A safer way is to install an event filter to carefully enable/disable handlers based on event sequence. Either way, it is sort of suboptimal.
So what I have in mind is, e.g., a simple "switch", like a property, that makes a handler exclusively grabs events during the entire gesture. Something like "grabPermissions: PointerHandler.TakeOverForbidden", but stricter. "TakeOverForbidden" at least cannot stop DragHandler from grabbing exclusive during PinchHandler finishing.