# Youtube scrolling bug

**URL:** <https://meta.discourse.org/t/youtube-scrolling-bug/40237>\
**Category:** Bug\
**Created:** [February 26, 2016, 6:55pm UTC](https://meta.discourse.org/t/youtube-scrolling-bug/40237 "2016-02-26T18:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [February 26, 2016, 10:14pm UTC](https://meta.discourse.org/t/youtube-scrolling-bug/40237/9 "2016-02-26T22:14:15Z")

</div>

I’ve got a fix here for the video restarting when scrolling to different posts:

[https://github.com/discourse/discourse/commit/65d7103bdc20d597decaeefa6ae9c782d6d51aaa](https://github.com/discourse/discourse/commit/65d7103bdc20d597decaeefa6ae9c782d6d51aaa)

As for it stopping when offscreen: that’s the result of our cloaking, which tries to save memory by unloading things as they scroll off. We might be able to increase the threshold before this happens, or perhaps add a check to see if there’s a video playing, but I think it’s less serious of a bug.

---

_[View the full topic](https://meta.discourse.org/t/youtube-scrolling-bug/40237)._
