mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix spinner dialog on map load.
Approved-by: Paulo Veiga
This commit is contained in:
parent
5c5aefea64
commit
706a440d97
@ -16,7 +16,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { $assert, $defined } from '@wisemapping/core-js';
|
||||
import $ from 'jquery';
|
||||
import Messages, { $msg } from './Messages';
|
||||
|
||||
import Events from './Events';
|
||||
@ -117,14 +116,14 @@ class Designer extends Events {
|
||||
const zoomFactor = 1.006;
|
||||
const me = this;
|
||||
// Zoom In and Zoom Out must active event
|
||||
$(document).on('mousewheel', (event) => {
|
||||
if (event.deltaY > 0) {
|
||||
document.addEventListener('wheel', (event) => {
|
||||
if (event.deltaX > 0 || event.deltaY > 0) {
|
||||
me.zoomIn(zoomFactor);
|
||||
} else {
|
||||
me.zoomOut(zoomFactor);
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
}, { passive: false });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user