Open LorenzoBoccaccia opened 9 years ago
There are a few problems with this pull request:
document.querySelectorAll('body *')
on every touch event is very inefficient.Sorry I'm unfamiliar with js, had to hack together a fix and thought to share it.
Will fix 1 and 3. Any suggestion for 2? One can't just get the div under the cursor as the scrollable one may be the parent. Maybe I can traverse the hierarchy in reverse order but would that work with unrelated position fixed elements overlapping? I don't think.
When a vertical scroll event is detected, the handler will check where the event happened
If the event it happened on a scrollable element, having scroll or auto css and enough content to be actually scrollable, then the event is allowed to pass
If no scrollable element is under the drag start position, then the event would scroll the page so the event is prevented from propagate
This should properly address issue #3