Add grabbing cursor for middle-click pan mode

pan-zoom
dimitrieh 2025-09-30 14:29:16 +02:00 committed by Nick O'Leary
parent 775d6181c9
commit f22915e1b9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 0 deletions

View File

@ -1603,6 +1603,8 @@ RED.view = (function() {
mouse_mode = RED.state.PANNING; mouse_mode = RED.state.PANNING;
mouse_position = [d3.event.pageX,d3.event.pageY] mouse_position = [d3.event.pageX,d3.event.pageY]
scroll_position = [chart.scrollLeft(),chart.scrollTop()]; scroll_position = [chart.scrollLeft(),chart.scrollTop()];
// Change cursor to grabbing while actively panning
outer.style('cursor', 'grabbing');
return; return;
} }
if (d3.event.button === 2) { if (d3.event.button === 2) {