Fix rounding error with rich text scrollbar

pull/1/head
yflory 4 years ago
parent 94ce56fbac
commit 43d2b308ab

@ -732,7 +732,7 @@ define([
// Get scroll position // Get scroll position
var sTop = $iframe.scrollTop(); var sTop = $iframe.scrollTop();
var sTopMax = $iframe.innerHeight() - $('iframe').innerHeight(); var sTopMax = $iframe.innerHeight() - $('iframe').innerHeight();
var scrollMax = sTop === sTopMax; var scrollMax = Math.abs(sTop - sTopMax) < 1;
// Apply the changes // Apply the changes
var patch = (DD).diff(inner, userDocStateDom); var patch = (DD).diff(inner, userDocStateDom);

Loading…
Cancel
Save