From e1ff3820410f41922e7fc34f3f5e61dec5ae90bf Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Tue, 17 Sep 2013 19:05:35 +1000 Subject: [PATCH] Fix IE autoscroll `drop` triggering issue Add overlay (css ::before generated content) while dragging to prevent IE to trigger `drop` event while autoscrolling --- lib/ace/css/editor.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/ace/css/editor.css b/lib/ace/css/editor.css index ba446b33..ea3bb689 100644 --- a/lib/ace/css/editor.css +++ b/lib/ace/css/editor.css @@ -31,6 +31,17 @@ cursor: default !important; } +.ace_dragging .ace_scroller:before{ + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + content: ''; + background: rgba(0, 0, 0, 0.01); + z-index: 1000; +} + .ace_selecting, .ace_selecting * { cursor: text !important; }