forked from ampproject/amphtml
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨Flick to dismiss docked video (ampproject#20906)
* Tracks dragging velocity. * On drag end, video is dismissed if velocity is over a certain threshold by either: * sliding out, if the component area is out of view * or bouncing into position, if the component area is in view Videos docked to slot elements cannot be dragged, so this feature won't work in this case. An upcoming PR will introduce dragging for slot elements so they can be flicked-to-dismiss.
- Loading branch information
1 parent
6d1ef39
commit f4ff556
Showing
2 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters