From dc9f4e2de7fc17009e7f57996ba3d77c3864f4ee Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Wed, 26 Jun 2019 12:50:52 +0200 Subject: [PATCH] Pop storyview: animation - don't x-overflow page (#3857) ... this makes the animation when inserting tiddlers / navigating to tiddlers in the pop storyview less jumpy it simply sets `overflow-x` to `hidden` for the time of the insert-animation --- core/modules/storyviews/pop.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/modules/storyviews/pop.js b/core/modules/storyviews/pop.js index 1896633f4..f720785c6 100644 --- a/core/modules/storyviews/pop.js +++ b/core/modules/storyviews/pop.js @@ -44,7 +44,14 @@ PopStoryView.prototype.insert = function(widget) { {transition: "none"}, {transform: "none"} ]); + $tw.utils.setStyle(widget.document.body,[ + {"overflow-x": ""} + ]); },duration); + // Prevent the page from overscrolling due to the zoom factor + $tw.utils.setStyle(widget.document.body,[ + {"overflow-x": "hidden"} + ]); // Set up the initial position of the element $tw.utils.setStyle(targetElement,[ {transition: "none"},