mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 18:13:39 +08:00
FIX: iOS height was incorrect when zoomed for cloaking
This commit is contained in:
parent
4c93da01c3
commit
62f757da2c
2
vendor/assets/javascripts/ember-cloaking.js
vendored
2
vendor/assets/javascripts/ember-cloaking.js
vendored
|
@ -91,7 +91,7 @@
|
|||
|
||||
var toUncloak = [],
|
||||
$w = $(window),
|
||||
windowHeight = $w.height(),
|
||||
windowHeight = window.innerHeight ? window.innerHeight : $w.height(),
|
||||
windowTop = $w.scrollTop(),
|
||||
slack = Math.round(windowHeight * this.get('slackRatio')),
|
||||
viewportTop = windowTop - slack,
|
||||
|
|
Loading…
Reference in New Issue
Block a user