summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-10 12:35:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-10 12:35:39 +0000
commit958c63a9d7b95221e5fc4591e3fb7388b7e56674 (patch)
tree4b6123b87c3e3ac3be17a8f68c80a025659a015f
parent886bfd5fe6c25171f5e743d32529cf15834436f2 (diff)
- Fix blinking selection when using splitter on Chrome
git-svn-id: https://svn.roundcube.net/trunk@4335 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/skins/default/splitter.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/skins/default/splitter.js b/roundcubemail/skins/default/splitter.js
index de228c58a..e11f9fea5 100644
--- a/roundcubemail/skins/default/splitter.js
+++ b/roundcubemail/skins/default/splitter.js
@@ -24,7 +24,7 @@ function rcube_splitter(attrib)
// create and position the handle for this splitter
this.p1pos = this.relative ? $(this.p1).position() : $(this.p1).offset();
this.p2pos = this.relative ? $(this.p2).position() : $(this.p2).offset();
-
+
if (this.horizontal) {
var top = this.p1pos.top + this.p1.offsetHeight;
this.layer = new rcube_layer(this.id, {x: 0, y: top, height: 10,
@@ -92,7 +92,7 @@ function rcube_splitter(attrib)
this.onDragStart = function(e)
{
// disable text selection while dragging the splitter
- if (window.webkit || bw.safari)
+ if (bw.konq || bw.chrome || bw.safari)
document.body.style.webkitUserSelect = 'none';
this.p1pos = this.relative ? $(this.p1).position() : $(this.p1).offset();
@@ -155,7 +155,7 @@ function rcube_splitter(attrib)
this.onDragStop = function(e)
{
// resume the ability to highlight text
- if (window.webkit || bw.safari)
+ if (bw.konq || bw.chrome || bw.safari)
document.body.style.webkitUserSelect = 'auto';
// cancel the listening for drag events