1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

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
This commit is contained in:
Simon Huber 2019-06-26 12:50:52 +02:00 committed by Jeremy Ruston
parent cb2bf25563
commit dc9f4e2de7

View File

@ -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"},