- Home
- Forum
- Angular - EJ 2
- Scroll dragging over the schedule
Scroll dragging over the schedule
Hi,
I think that doesn't exists a native option in the ScheduleComponent to make vertical and horizontal scroll dragging the mouse over the component, like the behavior in mobile devices with touch events.
I want to implement this feature manually in timeline views. I have a code with a dedicated service and it works well if I click with the mouse left button and move the cursor over the component. However if I move it over the component but release it outside, when I hover the component again, the scroll still moves if I move the cursor over the component.
It seems that in this case, the scroll behavior still work and not stop it although I'm not clicking the mouse button. The method that I use to make the scroll, seems not fired when this wrong behavior occurs.
I don't know if this implementation may have some collision with other events or styles of the component, therefore I write this post.
I made have a demo to reproduce this and this is the stackblitz url: https://stackblitz.com/edit/angular-d8xfgh7p?file=src%2Fscroll.service.ts
I appreciate any help with this issue, thank you
Hi Swathi,
Thank you for your answer. I will keep an eye on the bug fix
Gonzalo,
You are most welcome! We will let you know once the fix is included.
Hi Swathi,
Thank you for your help. I updated the packages in my project but the bug still persist.
I have only explicitly set this two syncfusion dependencies in the package.json:
"@syncfusion/ej2-angular-navigations": "28.1.33",
"@syncfusion/ej2-angular-schedule": "28.1.38",
Although I know that more dependencies are installed automatically. Maybe it could be a bug with some dependency that I don't have in the correct version? In which packages was the bug fix implemented?
Thanks in advance
- Ensure all Syncfusion components are using the same major version.
- Delete the @syncfusion folder from the node_modules directory and the package-lock.json file from your project's root folder.
- Clear the npm cache.
- Update all Syncfusion packages to the same major version.
- Run npm install to reinstall the node modules.
Attachment: ej2angularscheduler_1249f97e.zip
Hi Swathi,
I realized that I have a few changes in the scroll.service. I put it like the example code and it works.
Thank you very much for your help.
Gonzalo,
You are welcome! Get back to us if you need any further assistance.
- 8 Replies
- 2 Participants
- Marked answer
-
GT Gonzalo Trujillo Almeida
- Dec 18, 2024 11:03 AM UTC
- Jan 15, 2025 06:58 AM UTC