Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨Flick to dismiss docked video #20906

Merged
merged 3 commits into from Feb 20, 2019
Merged

Conversation

alanorozco
Copy link
Member

@alanorozco alanorozco commented Feb 18, 2019

  • 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.

Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 nice

extensions/amp-video-docking/0.1/amp-video-docking.js Outdated Show resolved Hide resolved
@alanorozco alanorozco merged commit 798f38d into ampproject:master Feb 20, 2019
@alanorozco alanorozco deleted the dock-flick branch February 20, 2019 02:12
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* 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.
bramanudom pushed a commit to bramanudom/amphtml that referenced this pull request Mar 22, 2019
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants