[Libreoffice-commits] online.git: loleaflet/js
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jan 2 16:30:21 UTC 2019
loleaflet/js/w2ui-1.5.rc1.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 980d0fa653ca82e651357771a8c409a4554233e2
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Mon Dec 24 12:17:07 2018 -0400
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Jan 2 17:29:39 2019 +0100
loleaflet: w2toolbar: prevent default when scroll buttons is clicked
Change-Id: I1c4f7041e612c65f04f429f90dae870e0db731a5
diff --git a/loleaflet/js/w2ui-1.5.rc1.js b/loleaflet/js/w2ui-1.5.rc1.js
index 1bfb991c8..d6b0bc19c 100644
--- a/loleaflet/js/w2ui-1.5.rc1.js
+++ b/loleaflet/js/w2ui-1.5.rc1.js
@@ -13706,8 +13706,8 @@ var w2prompt = function (label, title, callBack) {
html += '<td width="100%" id="tb_'+ this.name +'_right" align="right">'+ this.right +'</td>';
html += '</tr>'+
'</tbody></table></div>'+
- '<div class="w2ui-scroll-left" onclick="var el=w2ui[\''+ this.name +'\']; if (el) el.scroll(\'left\');"></div>'+
- '<div class="w2ui-scroll-right" onclick="var el=w2ui[\''+ this.name +'\']; if (el) el.scroll(\'right\');"></div>';
+ '<div class="w2ui-scroll-left" onmousedown="event.preventDefault()" onclick="var el=w2ui[\''+ this.name +'\']; if (el) el.scroll(\'left\');"></div>'+
+ '<div class="w2ui-scroll-right" onmousedown="event.preventDefault()" onclick="var el=w2ui[\''+ this.name +'\']; if (el) el.scroll(\'right\');"></div>';
$(this.box)
.attr('name', this.name)
.addClass('w2ui-reset w2ui-toolbar')
More information about the Libreoffice-commits
mailing list