Opened 3 years ago

#14952 new bug

cursorAt in events is not immediately effective

Reported by: André Kremser 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;

Change History (0)

Note: See TracTickets for help on using tickets.