Skip to content

Commit

Permalink
[PE] Set pointer mode (hand/select)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova authored and K0R0L committed Nov 9, 2024
1 parent 66e336f commit c8ef047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
hideNotes: false // hide or show notes panel on first loading (presentation editor)
uiTheme: 'theme-dark' // set interface theme: id or default-dark/default-light
integrationMode: "embed" // turn off scroll to frame
pointerMode: 'select'/'hand' // set cursor mode in presentation editor, select by default
mobile: {
forceView: true/false (default: true) // turn on/off the 'reader' mode on launch. for mobile document editor only
standardView: true/false (default: false) // open editor in 'Standard view' instead of 'Mobile view'
Expand Down
2 changes: 2 additions & 0 deletions apps/presentationeditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,8 @@ define([
value = Common.localStorage.getBool('pe-hidden-notes', this.appOptions.customization && this.appOptions.customization.hideNotes===true);
me.api.asc_ShowNotes(!value);

me.api.asc_setViewerTargetType(this.appOptions.customization && this.appOptions.customization.pointerMode==='hand' ? 'hand' : 'select');

function checkWarns() {
if (!Common.Controllers.Desktop.isActive()) {
var tips = [];
Expand Down

0 comments on commit c8ef047

Please sign in to comment.