Merge pull request #4716 from corentin-sodebo-voile/master

Fix panning with middle mouse button on windows 10/11
This commit is contained in:
Nick O'Leary 2024-05-28 10:28:57 +01:00 committed by GitHub
commit 6d41ecdae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1190,6 +1190,7 @@ RED.view = (function() {
if (d3.event.button === 1) {
// Middle Click pan
d3.event.preventDefault();
mouse_mode = RED.state.PANNING;
mouse_position = [d3.event.pageX,d3.event.pageY]
scroll_position = [chart.scrollLeft(),chart.scrollTop()];