mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +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"},
|
||||
{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"},
|
||||
|
Loading…
Reference in New Issue
Block a user