diff options
Diffstat (limited to 'frontends/php/js/sbox.js')
-rw-r--r-- | frontends/php/js/sbox.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/js/sbox.js b/frontends/php/js/sbox.js index b693bff3..6325c480 100644 --- a/frontends/php/js/sbox.js +++ b/frontends/php/js/sbox.js @@ -149,13 +149,13 @@ create_box: function(){ this.dom_box.style.height = height+'px'; this.box.height = height; - if(!IE){ - this.dom_box.addEventListener('mousemove',A_SBOX[this.sbox_id].sbox.mousemove.bindAsEventListener(A_SBOX[this.sbox_id].sbox),true); - } - else{ + if(IE){ // this.dom_box.attachEvent('onmousemove',S_BOX.mousemove.bindAsEventListener(S_BOX)); this.dom_box.onmousemove = A_SBOX[this.sbox_id].sbox.mousemove.bind(A_SBOX[this.sbox_id].sbox); } + else{ + this.dom_box.addEventListener('mousemove',A_SBOX[this.sbox_id].sbox.mousemove.bindAsEventListener(A_SBOX[this.sbox_id].sbox),true); + } this.start_event.top = this.mouse_event.top; this.start_event.left = this.mouse_event.left; |