-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
dayClicked is not quite intuitive #1113
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 |
How bizarre, I did some digging and it looks like the issue lies in hammerjs, as removing it from the demo and everything works as expected. I guess there's just some config in hammerjs that needs to be tweaked to get it to work, if you wanted to do some googling and see if there's a solution to this posted somewhere that would be awesome! Edit: it looks like the |
Would switching your click directive from |
Strangely, while playing around with dependencies, this seems to have fixed itself. I think a minor update on a dependency somewhere seems to have resolved this, as all I've done is run npm install. Maybe you can confirm with the demos that a dependency update is all that's required? |
I tried that but it just never even triggered an event.
I just tried updating all the dependencies but the issue is still present for me |
That is so weird. Here's more detail if it might help us. I'm glad it's working on my build (verified on another machine, too), but I would really like to know what exactly I did to fix this.
I have not tested with a production build, yet. I will report back once I have. |
Maybe it's the way the library detects hammerjs, if it gets imported after |
You are exactly right. I just moved the hammerjs import to the top of main.ts and the bug came back. Very strange that I somehow "fixed" it by just commenting and then un-commenting that import, and now import order has that effect where it didn't before. I even went back through my commits and made sure that I did not change the import order when I tried removing hammerjs, and there is no change to main.ts. Very, very weird. Edit: I failed to make it clear that, after moving the hammerjs back down below the core imports, the bug went away again. Here's what my main.ts looks like right now:
|
I have verified that I think the logical solution involves a combination of |
So I'm kind of thinking that we can probably just remove hammerjs, it was originally added to fix this issue: #203 which I'm pretty sure has actually been solved by something else since. As of ios 11 there is no longer a 300ms click delay and the native |
I think you're right and probably Angular is the one abstracting the click delay out of the event. I can definitely say that just using the standard click event works great in the rest of our app. |
Please give |
Work great! |
Describe the bug
When you are trying to select a day, if the cursor moves AT ALL before mouseup, the dayClicked event does not fire. This is counterintuitive to how clicking works for end users. At the very least, as long as the mouseup happens inside the cell, dayClicked should probably still fire. This is causing a lot of frustration for our users since they are trying to rapidly select several days and it feels like the clicks just aren't happening.
Minimal reproduction of the problem with instructions
You can reproduce this in the selectable period demo. Just click in a cell and move the mouse before you let up on the click.
Screenshots
See demo.
Versions
@angular/core
: 7.2.15angular-calendar
: 0.27.14The text was updated successfully, but these errors were encountered: