Home > Mobile >  A question about touch events
A question about touch events

Time:12-06




My fingers to touch the green view at the beginning, and then slide to the right until after sliding out green view why sliding out can also receive and move events outside the green view raised his fingers will receive up event which can explain to the eldest brother

CodePudding user response:

Because your touch events is triggered on the green view, namely the down event began, and when you move the touch events complete process is haven't finished up event that you have been so move trigger is from down to up event

CodePudding user response:

Event distribution mechanism is: you're onDown returns true and events to you, so as long as the parent don't forced interruption, the whole process is directly to you
  • Related