From d57395905fe0099ec442f76a9a9c778ded5ba205 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 18 Jan 2022 15:16:33 +0300 Subject: [PATCH] [DE] Add methods for select and hand tools --- apps/documenteditor/main/app/controller/Statusbar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Statusbar.js b/apps/documenteditor/main/app/controller/Statusbar.js index b7d0a8466..d1b865ae4 100644 --- a/apps/documenteditor/main/app/controller/Statusbar.js +++ b/apps/documenteditor/main/app/controller/Statusbar.js @@ -137,6 +137,8 @@ define([ if (config.canUseSelectHandTools) { me.statusbar.btnSelectTool.on('click', _.bind(me.onSelectTool, me, 'select')); me.statusbar.btnHandTool.on('click', _.bind(me.onSelectTool, me, 'hand')); + me.statusbar.btnHandTool.toggle(true, true); + me.api.asc_setViewerTargetType('hand'); } var statusbarIsHidden = Common.localStorage.getBool("de-hidden-status"); @@ -352,7 +354,9 @@ define([ }, onSelectTool: function (type, btn, e) { - + if (this.api) { + this.api.asc_setViewerTargetType(type); + } }, zoomText : 'Zoom {0}%',