mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Restrict longpress start to left mouse button
This commit is contained in:
@ -323,7 +323,9 @@ class BulkEditOverlay {
|
|||||||
document.removeEventListener('click', this.handleContextMenuHide);
|
document.removeEventListener('click', this.handleContextMenuHide);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleHold = () => {
|
handleHold = (event) => {
|
||||||
|
if (0 !== event.button) return;
|
||||||
|
|
||||||
this.isLongPress = true;
|
this.isLongPress = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.isLongPress) {
|
if (this.isLongPress) {
|
||||||
|
Reference in New Issue
Block a user