chrisbateman / impetus

Agnostic utility for adding momentum to anything. It's like iScroll, except not for scrolling. Supports mouse and touch events.
chrisbateman.github.io/impetus
MIT License
487 stars 70 forks source link

Allow embedding impetus-enabled elements into other impetus-enabled elements #45

Open fortinmike opened 5 years ago

fortinmike commented 5 years ago

Allows embedding impetus-enabled elements into other impetus-enabled elements, such as a small scrollable div inside a larger one, etc. Without this, the parent and child both react to touch events at the same time, which is unexpected. If you see some use to the "propagate events" scenario (I can't think of any), adding an option to configure this should do the job.