framework/js
Alexander Skvortsov a64c39835a 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
..
dist Bundled output for commit b88a7cb33b [skip ci] 2021-03-09 03:46:55 +00:00
src Fix shaky composer on safari mobile 2021-03-12 00:23:37 -05:00
.prettierrc.json Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
admin.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
forum.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
package-lock.json Editor Driver Abstraction (#2594) 2021-02-26 16:17:05 -05:00
package.json Editor Driver Abstraction (#2594) 2021-02-26 16:17:05 -05:00
shims.d.ts Remove Mithril namespace export from shims.d.ts (#2347) 2020-10-02 19:34:06 -04:00
tsconfig.json Update tsconfig file to include .tsx files (#2457) 2020-11-26 12:00:13 -05:00
webpack.config.js Initial TypeScript infrastructure (#2206) 2020-07-03 14:47:44 +02:00