Changeset 2866 in subversion


Ignore:
Timestamp:
Aug 24, 2009 1:10:23 PM (4 years ago)
Author:
alec
Message:
  • Fix selection disabling while dragging splitter in webkit browsers (#1486056)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2860 r2866  
    22=========================== 
    33 
     4- Fix selection disabling while dragging splitter in webkit browsers (#1486056) 
    45- Added 'new_messages' plugin hook (#1486005) 
    56- Added 'logout_after' plugin hook (#1486042) 
  • trunk/roundcubemail/skins/default/splitter.js

    r2764 r2866  
    9595  this.onDragStart = function(e) 
    9696    { 
     97    // disable text selection while dragging the splitter 
     98    if (window.webkit || bw.safari) 
     99      document.body.style.webkitUserSelect = 'none'; 
     100 
    97101    this.p1pos = this.relative ? $(this.p1).position() : $(this.p1).offset(); 
    98102    this.p2pos = this.relative ? $(this.p2).position() : $(this.p2).offset(); 
    99103    this.drag_active = true; 
    100      
     104 
    101105    // start listening to mousemove events 
    102106    rcube_event.add_listener({element:document, event:'mousemove', object:this, method:'onDrag'}); 
     
    178182  this.onDragStop = function(e) 
    179183    { 
     184    // resume the ability to highlight text 
     185    if(window.webkit || bw.safari) 
     186      document.body.style.webkitUserSelect = 'auto'; 
     187 
    180188    // cancel the listening for drag events 
    181189    rcube_event.remove_listener({element:document, event:'mousemove', object:this, method:'onDrag'}); 
Note: See TracChangeset for help on using the changeset viewer.