mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-05-25 10:44:07 +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:
parent
cb2bf25563
commit
dc9f4e2de7
@ -44,7 +44,14 @@ PopStoryView.prototype.insert = function(widget) {
|
|||||||
{transition: "none"},
|
{transition: "none"},
|
||||||
{transform: "none"}
|
{transform: "none"}
|
||||||
]);
|
]);
|
||||||
|
$tw.utils.setStyle(widget.document.body,[
|
||||||
|
{"overflow-x": ""}
|
||||||
|
]);
|
||||||
},duration);
|
},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
|
// Set up the initial position of the element
|
||||||
$tw.utils.setStyle(targetElement,[
|
$tw.utils.setStyle(targetElement,[
|
||||||
{transition: "none"},
|
{transition: "none"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user