I have a customer request to modify the panning mouse click functionality in a web app to mimic another application they use. They want to make it so that clicking down on the center scroll wheel of the mouse and holding down allows for the panning in the map. Any distant chance anyone as done this or knows what to modify in the application code to do this?
George,
WABs jimu/main.js specifically disables the wheel button (normally when you see a programmer do something like this there is a good reason).
// disable middle mouse button scroll
on(window, 'mousedown', function(evt) {
if (!mouse.isMiddle(evt)) {
return;
}
evt.preventDefault();
evt.stopPropagation();
evt.returnValue = false;
return false;
});
Thanks Robert