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

Unable to drag to the last column (sunday) on low resolution devices + Scrolling not working with dragging event #21

Open
rajeshgajraj opened this issue Jun 3, 2021 · 2 comments

Comments

@rajeshgajraj
Copy link

rajeshgajraj commented Jun 3, 2021

Q1: If dividing the width of the screen in the ratio of like 20% to the left side menus and the remaining 80% to the calendar (.calendarContOuter), then the user can't drag the event to the last column (Sunday) for resolution 1368x768 (16:9), it works fine for 1920x1080 (16:9), Also If increase the browser zoom level to 125% or 150% user can't even drag to the second last column (Saturday) too.

Q2: Dragging not working as expected while scrolling up/down to the screen to move an event. Like if you have an event at 08:00 AM and want to drag it to 09:00 PM.

Any help will be appreciated.

@rajeshgajraj rajeshgajraj changed the title Unable to drag to the last column (sunday) on low resolution devices + Scrolling do not working with dragging event Unable to drag to the last column (sunday) on low resolution devices + Scrolling not working with dragging event Jun 3, 2021
@JackySw
Copy link

JackySw commented May 6, 2022

Did you ever found a solution for Q1?

@GerrGIT
Copy link
Contributor

GerrGIT commented May 8, 2022

Hi,

It is because the values of the containment of ui.draggable are not correct. This is because if you center the agenda for example, the left margins are not calculated correctly.

This can be fixed by changing this:

iCalendarMarginLeft = $(to.elem).css("margin-left");
iCalendarMarginLeft = parseInt(iCalendarMarginLeft.replace("px", ""));

Into this:
iCalendarMarginLeft = $(to.elem).offset().left;

It occurs a few times in the code.

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

No branches or pull requests

3 participants