Bug 183431 - 'wheel' event stops video when trying to unmute
Summary: 'wheel' event stops video when trying to unmute
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.13
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-07 23:21 PST by Wouter Vroege
Modified: 2018-03-08 21:59 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wouter Vroege 2018-03-07 23:21:27 PST
Unlike 'touchend' or 'click', the 'wheel' event (both on 'element' or 'window') doesn't seem to be a valid interaction event to unmute autoplay video.
Instead, the video is stopped.

Demo: https://codepen.io/woutervroege/pen/MVgoQO
Comment 1 Radar WebKit Bug Importer 2018-03-08 21:23:23 PST
<rdar://problem/38289973>
Comment 2 Jer Noble 2018-03-08 21:59:25 PST
When we talked about this on twitter <https://twitter.com/woutervroege/status/971483683415830534>, I misunderstood your question. I thought you were saying that "wheel" doesn't seem like it _should_ be a valid interaction event, implying that the bug was that we _were_ allowing it to be used to unmute autoplaying video.

Actually, I don't believe "wheel" should be a valid user interaction event. If it were, then users with mouse-wheels could have their videos un-mute when they were only trying to scroll the page. In this case, it's similar to the distinction between "touchstart" and "touchend". "touchstart" will be fired at the start of a scroll gesture, but "touchend" will never be fired when the user goes on to scroll the page, so it's safe to use as a user gesture.