Opened 12 years ago

Closed 12 years ago

#7750 closed enhancement (notabug)

disable text selection not works for the slider handle

Reported by: thepanther Owned by: thepanther
Priority: minor Milestone: 1.9.0
Component: ui.slider Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

$.fn.disableSelection = function() {
    return this.each(function() {           
        $(this).attr('unselectable', 'on')
               .css({
                   '-moz-user-select':'none',
                   '-webkit-user-select':'none',
                   'user-select':'none'
               })
               .each(function() {
                   this.onselectstart = function() { return false; };
               });
    });
};

Not works on slider handle. Every blinking on the slider button/handle the 'I' Text-Selection cursor, is very unsexy. It be nice, if you can fix this.

Change History (3)

comment:1 Changed 12 years ago by Scott González

Owner: set to thepanther
Status: newpending

There shouldn't even be anything to select in your handle. Please provide a reduced test case showing the problem.

comment:2 Changed 12 years ago by Scott González

Also, what version are you using? I can't seem to find anything that has that definition for disableSelection.

comment:3 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.