Our pure JavaScript Scheduler component


Post by calendardeveloper »

By the way, I am on the latest 6.x alpha version


Post by alex.l »

HI,

This is static property, please check docs. You need to change it on the class, not on the instance.

Please let us know if it fixed your problem.

All the best,
Alex


Post by calendardeveloper »

Sorry, how would I do that in React? any example? I am using the <BryntumSchedulerPro> component


Post by tasnim »

Hi,

Try importing the SchedulerPro from '@bryntum/schedulerpro'
And try setting https://www.bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-convertPinchToMousewheel-static it inside the userEffect

    useEffect(() => {
        SchedulerPro.convertPinchToMousewheel = false;
    }, [])

Does that work for you?


Post by calendardeveloper »

Thanks. It sort of works. It is not responding to the pinch zoom as it does natively. It only works 1 out of 10 times. Looks like the events are still getting mixed up.


Post by calendardeveloper »

Just to re-iterate, this is a blocker for us as we rely heavily on native pinch zoom. This used to be absolutely fine, up until a few versions ago. But something has changed and this opt-out flag is clearly not completely opting out of this feature. Please suggest a solution.


Post by Animal »

The flag has to be set on the Widget class.

Widget.convertPinchToMousewheel = false


Post by Animal »

Here I added it to the online example, and as you see, its zoomed:

pinch.png
pinch.png (122.29 KiB) Viewed 176 times

Post by calendardeveloper »

can you give me the URL of the online example you added this to?


Post by alex.l »

Hi,
You can use any of our demos. As example this one https://bryntum.com/products/schedulerpro/examples/resourcehistogram/
Make sure you used Widget class to set property.

All the best,
Alex


Post Reply