Skip to main content

Search and Top Navigation

#14952 new bug ()

Opened April 22, 2016 03:58AM UTC

Last modified April 22, 2016 03:58AM UTC

cursorAt in events is not immediately effective

Reported by: krema Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:
Description

Problem:

The item cursor is not set correctly if you try to set the cursorAt options dynamically, for example, at the start, active, or drag event. When you try it a second time it works.

Demo:

http://jsbin.com/zobuvu/edit?js,output

Workaround:

A workaround is to set the offset.click object manually.

var instance = $(this).sortable('instance');
instance.offset.click.left = ui.item.width() / 2;
instance.offset.click.top = ui.item.height() / 2;
Attachments (0)
Change History (0)