mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-16 05:30:11 +02:00
fix: only invoke navigator click drag on left mouse button
This commit is contained in:
@@ -257,7 +257,11 @@ define('navigator', ['forum/pagination', 'components', 'hooks', 'alerts'], funct
|
||||
return false;
|
||||
}
|
||||
|
||||
thumbs.off('mousedown').on('mousedown', function () {
|
||||
thumbs.off('mousedown').on('mousedown', function (e) {
|
||||
if (e.originalEvent.button !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
mouseDragging = true;
|
||||
dragThumb = $(this);
|
||||
dragThumb.addClass('active');
|
||||
|
||||
Reference in New Issue
Block a user