Skip to content

Don't treat input/output as draggable inside of absolutePanel(draggable = T) - #3937

Merged
cpsievert merged 2 commits into
mainfrom
jqui-draggable-cancel
Nov 1, 2023
Merged

cpsievert merged 2 commits into
mainfrom
jqui-draggable-cancel

Conversation

@cpsievert

@cpsievert cpsievert commented Oct 31, 2023 •

Copy link
Copy Markdown
Collaborator

Closes #3933
Closes #3752

As a side note, it'd be nice if draggable could be a list of options for the draggable() method, but to do that properly (i.e., support JS functions, per element options, etc) would be non-trivial, and probably best be done via a web component (which could fix other problems with this approach, such as every element with a .draggable class getting instiantiated everytime a draggable element gets rendered).

For now, since we mainly want a targeted fix for #3933, we'll just add a smarter default behavior to prevent input/outputs from being draggable (so we also #3752 for free, virtually).

…t clicks on inputs and widgets from getting unneccesarily swallowed when absolutePanel(draggable = T)
@cpsievert
cpsievert force-pushed the jqui-draggable-cancel branch from 7600835 to bdfcefc Compare October 31, 2023 23:13
@cpsievert
cpsievert requested a review from gadenbuie October 31, 2023 23:45
Comment thread R/jqueryui.R Resolved
@cpsievert cpsievert changed the title Prevent absolutePanel(draggable = T) from interfering with click/drag events on input/output children Don't treat input/output as draggable inside of absolutePanel(draggable = T) Nov 1, 2023
@cpsievert
cpsievert merged commit b129739 into main Nov 1, 2023
@cpsievert
cpsievert deleted the jqui-draggable-cancel branch November 1, 2023 15:42
cpsievert added a commit to posit-dev/py-shiny that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants