Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9612 closed bug (fixed)

Draggable: abspos elements inside of fixed elements moving away from the mouse when scrolling

Reported by: Xenon Owned by: mikesherov
Priority: minor Milestone: 1.11.2
Component: ui.draggable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

When dragging a draggable element from an absolutely positioned div inside a position:fixed div, the element moves away from the mouse when scrolling. This happens with all versions I've tried, being 1.10.3, 1.10.2, git, and 1.8.2. Tested it with the newest Chrome and Firefox browsers.

Here's a JSFiddle demonstrating it: http://jsfiddle.net/LRVNq/1/

I realize there's quite a few tickets regarding draggable and scrolling already, but none of them seem to include position:fixed, so this might be a different problem.

Change History (5)

comment:1 Changed 3 years ago by mikesherov

  • Milestone changed from none to 1.11.0
  • Owner set to mikesherov
  • Status changed from new to assigned

Yup, this is a new one. I suppose I have to check .parents() for a fixed parent.

comment:2 Changed 3 years ago by mikesherov

  • Summary changed from Draggable moving away from the mouse when scrolling and using position:fixed; to Draggable: abspos elements inside of fixed elements moving away from the mouse when scrolling

comment:3 Changed 3 years ago by scottgonzalez

  • Milestone changed from 1.11.0 to none

comment:4 Changed 3 years ago by Mike Sherov

  • Resolution set to fixed
  • Status changed from assigned to closed

Draggable: Check all parents for fixed positioning when scrolling

Fixes #9612

Changeset: df7e32fe3798562ffb86d064444f1e0cc8ac59a8

comment:5 Changed 3 years ago by mikesherov

  • Milestone changed from none to 1.11.2
Note: See TracTickets for help on using tickets.