-
-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click event on draggable item #1144
Comments
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me |
Hi @mattlewis92 ¿What is the difference between your demo page code and stackblitz code? Because in the second one it does not work. |
Oh that's so weird, yeah I can reproduce it on stackblitz but not on the demo |
I finally figured this out, it's because the demo uses |
Hi @mattlewis92 Do you have any idea when you can make this change? |
@mattlewis92 Found a working solution wrapping the entire function code in touch start event with a setTimeout(() => { ... }, 1). Apperently only 1ms is enough to make it work. |
Hello, I just had the same problem on the mwl-calendar-week-view component and I found a workaround by adding |
@cheapfun |
Seems that (tap) is working for both touch and click events. |
As a workaround I made a service that will listen to touchstart. If device is a pointer device, I disabled event dragging. Currently It's impossible to scroll down calendar without accidentally dragging events on a pointer device. Holding down on a event to init dragging on a pointer device sounds like good solution to this problem. |
So I finally had some time this weekend to sit down and fix this properly. I've just cut a new release |
Describe the bug
In touch screens or mobile devices, click event is not fired when I click on calendar/external draggable events. However, click event is fired if the calendar/external event is not draggable.
I have no issues on draggable items of Angular Material drag and drop module
Minimal reproduction of the problem with instructions
Toogle device toolbar to Ipad Pro (Chrome devTools) and try to fire click event on draggable events.
Screenshots
Versions
@angular/core
: 8.2.14angular-calendar
: 0.28.2The text was updated successfully, but these errors were encountered: