Skip to content
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

[Scheduler] Slot Selection - dragEvent emits unexpectedly and breaks selection #4446

Open
Charles22219 opened this issue Oct 30, 2024 · 2 comments

Comments

@Charles22219
Copy link

Charles22219 commented Oct 30, 2024

Description

title. this causes the user to be blocked from selecting more slots since dragEvent finishes unexpectedly. This is only reproduced in Windows environment and tested on both Chrome and Firefox.

Steps To Reproduce

this can be reproduced in the documentation itself in custom callback. but this can also be observed while using the built-in directive

*note this is intermittent but happens often. the steps assumes the issue happens

  1. try to drag select from anywhere
  2. after drag clicking from the first slot the cursor changes to a not-allowed cursor and you are not able to drag select anymore
  3. if you look at the event log, the times that this happens you will notice that slotDragEnd is emitted right away after slotDragStart

Screenshots or video

Chrome:

Screen.Recording.2024-11-01.at.15.25.07.mov

Firefox:

Screen.Recording.2024-11-01.at.15.24.37.mov

Actual Behavior

slotDragEnd sometimes emits right after slotDragStart even though i have not let go of left mouse click

Expected Behavior

slotDragEnd should not be emitted till i let go of the left mouse click

Browser

All

Browser version

latest

OS type

Windows

OS version

No response

Last working version of the Kendo UI for Angular package (if regression).

No response

@Charles22219 Charles22219 changed the title Scheduler Selected Slots - [intermittent] slotDragEnd emits right away after slotDragStart, even if im still holding left mouse click Scheduler Selected Slots - slotDragEnd emits right away after slotDragStart, even if im still holding left mouse click Oct 30, 2024
@Charles22219 Charles22219 changed the title Scheduler Selected Slots - slotDragEnd emits right away after slotDragStart, even if im still holding left mouse click Scheduler Selected Slots - [interrmittent] slotDragEnd emits right away after slotDragStart, even if im still holding left mouse click Oct 30, 2024
@stnikolova stnikolova changed the title Scheduler Selected Slots - [interrmittent] slotDragEnd emits right away after slotDragStart, even if im still holding left mouse click [Scheduler] Slot Selection - dragEvent emits unexpectedly and breaks selection Nov 4, 2024
@yanmariomenev
Copy link
Contributor

yanmariomenev commented Nov 7, 2024

The issue might be related to how table cells are dragged in the browser. It seems that the entire cell is being dragged in the background which is visually seen in the Firefox browser. This led me to try the following workaround to stop the dragging of the td cell in the Scheduler:

.k-scheduler-table td {
  user-select: none;   
  -webkit-user-drag: none;
  pointer-events: auto;   
}

Workaround example - https://stackblitz.com/edit/angular-jdaplq-myraup

@Charles22219
Copy link
Author

@yanmariomenev this worked on my project. Thanks

*kendo-scheduler version: 16.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants