You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AMP foregoes pointer events entirely because iframe ad containers eat them. This makes the experience crappy in the general case (dragging images) to make the occasional case (dragging ads) possible.
Can we build a Tossable interaction that prefers pointer events, but can fallback to scroll events?
The text was updated successfully, but these errors were encountered:
This approach could also be useful for implementing interactions like overscroll-to-close.
The problem there is that you must declare ahead of time whether dragging an element should scroll it or dispatch pointer events, which makes overscroll impossible to achieve with pointerevents alone. One potential workaround is to listen for scrollY to idle at 0. When it does, add padding to the scroll area and offset scrollY to match, e.g. paddingTop = '100vh'; scrollY = window.innerHeight; backgroundColor: 'transparent'. That will give you scroll events for overscroll, which can be (manually) mapped to PartialPointerEvents and used to implement overscroll.
AMP foregoes pointer events entirely because iframe ad containers eat them. This makes the experience crappy in the general case (dragging images) to make the occasional case (dragging ads) possible.
Can we build a Tossable interaction that prefers pointer events, but can fallback to scroll events?
The text was updated successfully, but these errors were encountered: