mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-15 13:18:07 +00:00
Add "preventScroll" option to tm-focus-selector message (#4157)
* add "delayed" option to tm-focus-selector message this delays the focussing for the time of the animation duration if delayed="yes" or delayed="true" this is useful when navigating the story river up and down with keyboard shortcuts and the shortcuts focus the title input if a navigated tiddler is in edit mode -> navigation doesn't jump but stays smooth * Update rootwidget.js * Update WidgetMessage_ tm-focus-selector.tid * add preventScroll="true" tip
This commit is contained in:
committed by
Jeremy Ruston
parent
f49ab78ebd
commit
31e7dbf020
@@ -44,7 +44,7 @@ exports.startup = function() {
|
||||
console.log("Error in selector: ",selector)
|
||||
}
|
||||
if(element && element.focus) {
|
||||
element.focus();
|
||||
element.focus(event.paramObject);
|
||||
}
|
||||
});
|
||||
// Install the scroller
|
||||
|
||||
Reference in New Issue
Block a user