简体   繁体   English

jQuery UI拖放元素(当可拖动容器发生溢出时)在将其拖放到可拖动对象时被斩断

[英]jquery ui drag/drop element chopped off when dragging over droppables, only if draggable container has an overflow

I have a really weird issue when dragging an item from the Unschedule Games bucket into a grid, as you can see the draggable item gets cut off and happens about 80% of the time while dragging over that area. 将项目从Unschedule Games存储桶中拖到网格中时,我遇到了一个非常奇怪的问题,因为您可以看到,可拖动项在该区域上拖动时被切断并发生了大约80%的时间。

This ony happens when the items in the Unscheduled Games overflows, scroll bar. 当计划外游戏中的项目溢出时,滚动条会发生这种情况。 Otherwise no cutoff on drag. 否则,阻力不会中断。 The drag and drop works find between games in the grid just fine also. 在网格中的游戏之间进行拖放操作也很好。

This only happens in Chrome. 这仅在Chrome中发生。 Firefox and Edge work fine. Firefox和Edge可以正常工作。 I really dont know what JS or CSS to show since it can be anything. 我真的不知道要显示什么JS或CSS,因为它可以是任何东西。

Also when I pause it like the screen below and inspect the HTML, if I mess with the CSS, like turn "top" off then on, it pops normally with no cut off. 另外,当我像下面的屏幕一样暂停它并检查HTML时,如果我弄乱了CSS,例如先关闭然后再打开“ top”,它通常会弹出而不会被截断。 It seems there is a hidden container above it since I can drag horizontally in a straight line. 好像上面有一个隐藏的容器,因为我可以沿直线水平拖动。

I am using JQuery UI 1.9.2. 我正在使用JQuery UI 1.9.2。

My main question is, can this be a bug in Chrome? 我的主要问题是,这可能是Chrome中的错误吗? Could I install an older version of Chrome, and if so where can I find the installs? 我可以安装较旧版本的Chrome吗?如果可以,我在哪里可以找到安装程序?

在此处输入图片说明

I went back to an older version of Chrome and turns out to be a bug in the version 70.0.3538.77. 我回到较旧的Chrome版本,结果发现它是70.0.3538.77版本中的错误。 69.0.3497.92 works fine and image is below of correct behavior. 69.0.3497.92正常工作,并且图像低于正确的行为。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jQuery UI Draggable,Sortable-禁止拖动元素 - jQuery UI Draggable, Sortable - Disallow dragging element jQuery拖放:拖动一个封闭元素 - jQuery Drag & Drop: Dragging an enclosing element 仅当使用jQuery UI将鼠标悬停在特定元素上时才允许拖动 - Allow dragging only when mouse is over a particular element using jQuery UI jQuery UI Draggable / Sortable查找要拖动的元素 - jQuery UI Draggable/Sortable find element(s) you're dragging over jQuery UI Draggable在拖放时具有生涩的过渡 - jQuery UI draggable has jerky transition on drop jQuery Draggable - 创建可拖动并开始拖动html5本机Drag and Drop api事件 - jQuery Draggable - Create draggable and start dragging on html5 native Drag And Drop api event 开始拖动具有draggable 属性的DOM 元素后,是否可以停止拖动并退出拖放? - After starting the drag of a DOM element with draggable attribute , Could we stop dragging and exit from drag and drop? jQuery UI Draggable - 需要在拖动时修改元素 - jQuery UI Draggable - need to modify element while dragging 使用Jquery UI拖放后,可拖动元素不再可拖动 - Draggable element no longer draggable after drop using Jquery UI 如何解决jQuery UI droppable bug,如果可拖动元素在可放置绑定之前被拖动,over / out不会触发 - How to workaround jQuery UI droppable bug where over/out do not fire if draggable element is dragging before droppable bound
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM