Hi, We need to override the feature of zooming the scheduler chart using ctrl key and mouse scroll. We want to zoom the scheduler only by using the mouse scroll and not using ctrl key. Please provide the attribute to enable this feature .
Thanks,
Kanimozhi
Support Forum
Hi!
You can use wheel event to implement it by yourself.
It is simple with EventHelper.
https://www.bryntum.com/docs/scheduler/#Common/helper/EventHelper
Use zoomOnMouseWheel : false to disable build-in mouse wheel zooming.
https://www.bryntum.com/docs/scheduler/#Scheduler/view/mixin/TimelineZoomable#config-zoomOnMouseWheel
You can use wheel event to implement it by yourself.
It is simple with EventHelper.
https://www.bryntum.com/docs/scheduler/#Common/helper/EventHelper
EventHelper.on({
element : scheduler.subGrids.normal.element,
wheel : (event) => {
event.preventDefault();
event.deltaY > 0 ? scheduler.zoomOut() : scheduler.zoomIn();
},
thisObj : scheduler
});
https://www.bryntum.com/docs/scheduler/#Scheduler/view/mixin/TimelineZoomable#config-zoomOnMouseWheel