Bug Tracker

Modify

Ticket #1783 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

Draggable cursor setting does not change

Reported by: tuupola Owned by: rworth
Priority: minor Milestone:
Component: ui Version:
Keywords: draggable, cursor Cc:
Blocking: Blocked by:

Description

Setting cursor parameter does not work using draggables. Tested with OSX FF2 and Safari.

 $("#something").draggable({
      cursor : "move"
 });

Workaround is to use something like following:

 $("#something").draggable({
     cursor : "move",
     start  : function(event, ui) {
         $(this).css('cursor','move');
     },
     stop  : function(event, ui) {
         $(this).css('cursor','default');
     }      
 });

Change History

comment:1 Changed 6 years ago by tuupola

Sorry this is bogus. I was not including ui.draggable.ext.js.

One cosmetic request though. IMO cursor should change on mousedown. Now it changes only after you have started to drag element.

comment:2 Changed 6 years ago by rworth

  • Owner set to rworth
  • Status changed from new to assigned

comment:3 Changed 5 years ago by paul

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.