diff --git a/Canvas.js b/Canvas.js index d74f04d2d..5b0643147 100644 --- a/Canvas.js +++ b/Canvas.js @@ -640,7 +640,7 @@ function newCanvas () { container = canvas.panelsSpace.getContainer({ x: point.x, y: point.y }) if (container !== undefined && container.isWheelable === true) { - container.eventHandler.raiseEvent('Mouse Wheel', event) + container.eventHandler.raiseEvent('onMouseWheel', event) return false // This instructs the browser not to take the event and scroll the page. } @@ -649,7 +649,7 @@ function newCanvas () { container = canvas.floatingSpace.getContainer({ x: point.x, y: point.y }) if (container !== undefined && container.isWheelable === true) { - container.eventHandler.raiseEvent('Mouse Wheel', event) + container.eventHandler.raiseEvent('onMouseWheel', event) return false // This instructs the browser not to take the event and scroll the page. } @@ -658,7 +658,7 @@ function newCanvas () { container = canvas.bottomSpace.getContainer({ x: point.x, y: point.y }) if (container !== undefined && container.isWheelable === true) { - container.eventHandler.raiseEvent('Mouse Wheel', event) + container.eventHandler.raiseEvent('onMouseWheel', event) return false // This instructs the browser not to take the event and scroll the page. } @@ -667,7 +667,7 @@ function newCanvas () { container = canvas.chartSpace.getContainer({ x: point.x, y: point.y }, GET_CONTAINER_PURPOSE.MOUSE_WHEEL) if (container !== undefined && container.isWheelable === true) { - container.eventHandler.raiseEvent('Mouse Wheel', event) + container.eventHandler.raiseEvent('onMouseWheel', event) return false // This instructs the browser not to take the event and scroll the page. } else { /* If all the above fails, we fallback into applying zoom to the viewPort */ diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index 0c532a7e0..38887727b 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -132,13 +132,13 @@ /* Listen to Status Changes Events */ productCard.container.eventHandler.listenToEvent('Status Changed', onProductCardStatusChanged) - productCard.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + productCard.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) } } } } - thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) isInitialized = true } diff --git a/Scales/RateScale.js b/Scales/RateScale.js index 679dbe118..f448c6aee 100644 --- a/Scales/RateScale.js +++ b/Scales/RateScale.js @@ -41,7 +41,7 @@ function newRateScale () { function initialize (pTimeLineCoordinateSystem) { timeLineCoordinateSystem = pTimeLineCoordinateSystem - thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) thisObject.heightPercentage = window.localStorage.getItem(MODULE_NAME) if (!thisObject.heightPercentage) { diff --git a/Scales/TimePeriodScale.js b/Scales/TimePeriodScale.js index 95c9ff5e3..6ed8308da 100644 --- a/Scales/TimePeriodScale.js +++ b/Scales/TimePeriodScale.js @@ -40,7 +40,7 @@ function newTimePeriodScale () { function initialize (pTimeLineCoordinateSystem) { timeLineCoordinateSystem = pTimeLineCoordinateSystem - thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) readObjectState() newTimePeriod() diff --git a/Scales/TimeScale.js b/Scales/TimeScale.js index 1516bcdef..5ceb30589 100644 --- a/Scales/TimeScale.js +++ b/Scales/TimeScale.js @@ -35,7 +35,7 @@ function newTimeScale () { function initialize (pTimeLineCoordinateSystem) { timeLineCoordinateSystem = pTimeLineCoordinateSystem - thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) thisObject.lenghtPercentage = window.localStorage.getItem(MODULE_NAME) if (!thisObject.lenghtPercentage) { diff --git a/Spaces/FloatingSpace.js b/Spaces/FloatingSpace.js index 6070b086d..56ce68e95 100644 --- a/Spaces/FloatingSpace.js +++ b/Spaces/FloatingSpace.js @@ -55,7 +55,7 @@ function newFloatingSpace () { thisObject.strategyParts = newStrategyParts() thisObject.strategyParts.initialize(thisObject.floatingLayer) - thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel) + thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel) } function onMouseWheel (event) {