1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 06:41:21 +02:00
Files
php-flarum/framework/core/js
Alexander Skvortsov 6a10c4e8ed Fix shaky composer on safari mobile
When the composer is opened while scrolled to the absolute bottom of the page (via hitting the "reply" button, `window.scrollTop` has a value of ~600px greater than it should. This doesn't seem to be the composer element's height (which appears to be 0 at the time). This incorrect scrollTop positions the composer off screen, which causes Safari to freak out and shake the element violently as it tries to scroll to the cursor (which is now off screen).

We can get around this by calculating scrollTop ourselves.

Fixes https://github.com/flarum/core/issues/2683
2021-03-12 00:23:37 -05:00
..
2021-03-12 00:23:37 -05:00
2018-06-20 13:20:31 +09:30
2018-06-20 13:20:31 +09:30
2021-02-26 16:17:05 -05:00