mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
virt table: don't propagate pageUp/Down on macOS (#5518)
Same as on all other platforms. That way, if the parent container is scrollable, it will not scroll.
This commit is contained in:
parent
015769a9f8
commit
5a7444f424
1 changed files with 1 additions and 5 deletions
|
|
@ -336,11 +336,7 @@ class VirtualizedTable extends React.Component {
|
|||
|
||||
this._isMouseDrag = false;
|
||||
|
||||
this.preventScrollKeys = new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", " "]);
|
||||
if (!Zotero.isMac) {
|
||||
['PageUp', 'PageDown'].forEach(key => this.preventScrollKeys.add(key));
|
||||
}
|
||||
|
||||
this.preventScrollKeys = new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", " ", "PageUp", "PageDown"]);
|
||||
this.onSelection = oncePerAnimationFrame(this._onSelection);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue