Changeset f9aeecd in github


Ignore:
Timestamp:
Aug 24, 2009 1:10:23 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
4007170
Parents:
d343336
Message:
  • Fix selection disabling while dragging splitter in webkit browsers (#1486056)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rdc1dbc4 rf9aeecd  
    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) 
  • skins/default/splitter.js

    r3541d0e rf9aeecd  
    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.