Commit graph

15 commits

Author SHA1 Message Date
infiinte-persistence 4b03a30121 Fix initial pause state for the Autoplay Countdown
## Issue
5204: Don't autoplay when commenting/video off screen

## Change
Previously, the checking was only done during a scroll event. We also need to check if the user has already scroll down before the component was invoked.
2020-12-21 12:14:31 -05:00
Sean Yesmunt 0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
Sean Yesmunt 46fbcb5a0f fix autoplay countdown 2020-10-30 00:04:59 -04:00
jessop d9bf72a351 all settings constants come from redux
sync settings

backout nav cases and anon preference key

more robust backout header

put notificationSettings under backout bar

review changes
2020-07-27 11:53:14 -04:00
infiinte-persistence b010325618 Pause 'Autoplay': cleanup
1. Use a constant for the classname instead of being hardcoded.
2. Use existing 'debounce' function instead of introducing another.
3. Added changelog entry.
2020-06-25 00:23:47 -04:00
infiinte-persistence 2c695b8150 Pause 'Autoplay' when a Modal is present. 2020-06-25 00:23:47 -04:00
infiinte-persistence 39db18046f Pause 'Autoplay' when scrolled off screen.
Fixes #-4021.

## Changes:
When the autoplay overlay gets partially off-screen, the timer will be stopped. We can tweak how much down it needs to be scrolled.

When timer is paused, the countdown resets.

The pausing mechanism has no effect on the floating player (since the 'top' can never go negative). This behavior is the same as another big video platform.
2020-06-25 00:23:47 -04:00
Sean Yesmunt f64e659a7c fix autoplay 2020-05-26 13:13:58 -04:00
Sean Yesmunt dae3a517f5 fix autoplay 2020-04-29 13:55:47 -04:00
Jeremy Kauffman 6c8b0b2d68 maybe ready 2020-04-29 11:00:42 -04:00
Jeremy Kauffman c52a88f117 fix timing 2020-04-29 11:00:42 -04:00
Jeremy Kauffman 793f622d8d semi-broken 2020-04-29 11:00:42 -04:00
Sean Yesmunt 9a37080769 clean up mobile styling 2020-01-28 09:35:39 -05:00
Sean Yesmunt f4da12128a disable countdown for floating window 2020-01-28 09:35:39 -05:00
Sean Yesmunt d312a8e8b6 basic autoplay timer working 2020-01-28 09:35:39 -05:00