question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Touch screen click event on draggable event

See original GitHub issue

Describe the bug

In touch screens or mobile devices, click event is not fired when I click on a draggable event. However, click event is fired if the event is not draggable. I am using a custom cell template from the month view. On the other hand, I have no issues with click event on draggable items of Angular Material drag and drop module

Minimal reproduction of the problem with instructions

Screenshots

Versions

  • @angular/core: 8.0.2
  • angular-calendar: 0.27.11
  • Browser name and version: Chrome 75.0.3770.100

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cosf87commented, Jun 28, 2019

You’re right. I really appreciate your help. Greetings

0reactions
wendlandreascommented, Feb 19, 2020

Seems this issue re-appeared after upgrading to Angular 9. Found some hints that hammerjs is optional in Angular 9. However, removing hammerjs doesn´t solve the issue. Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

drag-and-drop on touchscreen - javascript - Stack Overflow
My initial understanding is that, wherever I assign element.onmousedown , element.onmousemove and element.onmouseup I can simply also assign the ...
Read more >
Drag and drop elements on touch devices - HorusKol
Want to allow users to move elements around a page no matter what device they're using? Here's a quick guide to implementing drag...
Read more >
Using Touch Events - Web APIs | MDN
For the touchstart event, it is a list of the touch points that became active with the current event. For the touchmove event,...
Read more >
How to separate Drag and Swipe from Click and Touch events
First step, is when we touch the screen or press and hold the mouse button. On this step we are setting isSwipe to...
Read more >
Click events inside draggable do not work · Issue #5 - GitHub
I've added the touch-punch library after jquery ui, and verified that drag objects do indeed drag with touch events on the iPhone, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found