mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix initial scroll in rich text
This commit is contained in:
parent
9d64883437
commit
2da6ac87c3
@ -934,7 +934,7 @@ define([
|
||||
// Get scroll position
|
||||
var sTop = $iframe.scrollTop();
|
||||
var sTopMax = $iframe.innerHeight() - $('iframe').innerHeight();
|
||||
var scrollMax = Math.abs(sTop - sTopMax) < 1;
|
||||
var scrollMax = Math.abs(sTop - sTopMax) < 1 && sTop;
|
||||
|
||||
// Apply the changes
|
||||
var patch = (DD).diff(inner, userDocStateDom);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user