Changeset 1000

Show
Ignore:
Timestamp:
11/23/08 10:00:29 (16 months ago)
Author:
paul.bakaus
Message:

core (mouse): preventDefault in most cases instead of returning false, that blocks all bubbling events (fixed #3552)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.core.js

    r998 r1000  
    463463                        .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); 
    464464 
    465                 return $.browser.safari; //Fix for safari to allow selecting select options 
     465                // preventDefault() is used to prevent the selection of text here - 
     466                // however, in Safari, this causes select boxes not to be selectable 
     467                // anymore, so this fix is needed  
     468                if(!$.browser.safari) event.preventDefault(); 
     469                return true; 
    466470        }, 
    467471 
     
    474478                if (this._mouseStarted) { 
    475479                        this._mouseDrag(event); 
    476                         return false; 
     480                        return event.preventDefault(); 
    477481                } 
    478482