Skip to content

Commit

Permalink
Disable zoom for spreadsheets on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-litvinchik committed Sep 17, 2023
1 parent e5b490c commit df16912
Show file tree
Hide file tree
Showing 11 changed files with 391 additions and 451 deletions.
2 changes: 1 addition & 1 deletion Demos/ASP.NET Core/src/GroupDocs.Viewer.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GroupDocs.Viewer.UI" Version="6.0.14" />
<PackageReference Include="GroupDocs.Viewer.UI" Version="6.0.15" />
<PackageReference Include="GroupDocs.Viewer.UI.Api.Local.Cache" Version="6.0.2" />
<PackageReference Include="GroupDocs.Viewer.UI.Api.Local.Storage" Version="6.0.2" />
<PackageReference Include="GroupDocs.Viewer.UI.SelfHost.Api" Version="6.0.16" />
Expand Down
1 change: 1 addition & 0 deletions Demos/ASP.NET MVC/src/ClientApp/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GroupDocs.Viewer UI</title>
<base href="#uiPath#">
<link rel="stylesheet" href="custom.css">
</head>
<body>
<app-root></app-root>
Expand Down
406 changes: 187 additions & 219 deletions Demos/ASP.NET MVC/src/ClientApp/dist/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Demos/ASP.NET MVC/src/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@angular/platform-browser": "^14.1.0",
"@angular/platform-browser-dynamic": "^14.1.0",
"@angular/router": "^14.1.0",
"@groupdocs.examples.angular/viewer": "^0.8.92",
"@groupdocs.examples.angular/viewer": "^0.8.104",
"rxjs": "^7.5.6",
"tslib": "^2.4.0",
"zone.js": "^0.11.7"
Expand All @@ -26,6 +26,6 @@
"@angular/cli": "^14.1.0",
"@angular/compiler-cli": "^14.1.0",
"@types/node": "^18.0.6",
"typescript": "4.8.3"
"typescript": "^4.7.4"
}
}
8 changes: 4 additions & 4 deletions Demos/ASP.NET MVC/src/ClientApp/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<gd-loading-mask [loadingMask]="isLoading"></gd-loading-mask>
<div class="wrapper" (contextmenu)="onRightClick()">
<div class="top-panel" *ngIf="!runPresentation">
<gd-logo [logo]="'viewer'" icon="eye"></gd-logo>
<gd-top-toolbar class="toolbar-panel">
<gd-logo [logo]="'viewer'" icon="eye" *ngIf="showToolBar"></gd-logo>
<gd-top-toolbar class="toolbar-panel" *ngIf="showToolBar">
<gd-button [icon]="'folder-open'" title="{{'Browse files' | translate}}" (click)="openModal(browseFilesModal)"
*ngIf="browseConfig" ></gd-button>

Expand Down Expand Up @@ -35,7 +35,7 @@

<gd-button [disabled]="formatDisabled" [icon]="'search'" title="{{'Search' | translate}}" (click)="openSearch()"
*ngIf="searchConfig && !ifPresentation()" ></gd-button>
<gd-search (hidePanel)="showSearch = !$event" *ngIf="showSearch" ></gd-search>
<gd-search (hidePanel)="openSearch(false)" #search [hidden]="!showSearch" ></gd-search>

<div class="toolbar-panel-right">
<div class="language-menu mobile-hide" *ngIf="showLanguageMenu">
Expand Down Expand Up @@ -76,7 +76,7 @@
<gd-document class="gd-document" *ngIf="(file &&
(ifExcel() && !htmlModeConfig) ||
(ifPresentation() && isDesktop && !runPresentation) ||
(!ifExcel() && !ifPresentation()))" [file]="file" [mode]="htmlModeConfig" [showActiveSlide]="true" gdScrollable
(!ifExcel() && !ifPresentation()))" [file]="file" [mode]="htmlModeConfig" [showActiveSlide]="true" gdScrollableEdited
[preloadPageCount]="viewerConfig.preloadPageCount || 0" [selectedPage]="selectedPageNumber" gdRenderPrint [htmlMode]="htmlModeConfig" gdMouseWheel (mouseWheelUp)="onMouseWheelUp()" (mouseWheelDown)="onMouseWheelDown()"></gd-document>
<gd-excel-document class="gd-document" *ngIf="file && ifExcel() && htmlModeConfig" [file]="file" [mode]="htmlModeConfig" gdScrollable
[preloadPageCount]="viewerConfig.preloadPageCount || 0" gdRenderPrint [htmlMode]="htmlModeConfig"></gd-excel-document>
Expand Down
1 change: 1 addition & 0 deletions Demos/ASP.NET MVC/src/ClientApp/src/index.prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GroupDocs.Viewer UI</title>
<base href="#uiPath#">
<link rel="stylesheet" href="custom.css">
</head>
<body>
<app-root></app-root>
Expand Down
1 change: 1 addition & 0 deletions Demos/ASP.NET Web Forms/src/ClientApp/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GroupDocs.Viewer UI</title>
<base href="#uiPath#">
<link rel="stylesheet" href="custom.css">
</head>
<body>
<app-root></app-root>
Expand Down
406 changes: 187 additions & 219 deletions Demos/ASP.NET Web Forms/src/ClientApp/dist/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Demos/ASP.NET Web Forms/src/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@angular/platform-browser": "^14.1.0",
"@angular/platform-browser-dynamic": "^14.1.0",
"@angular/router": "^14.1.0",
"@groupdocs.examples.angular/viewer": "^0.8.92",
"@groupdocs.examples.angular/viewer": "^0.8.104",
"rxjs": "^7.5.6",
"tslib": "^2.4.0",
"zone.js": "^0.11.7"
Expand All @@ -26,6 +26,6 @@
"@angular/cli": "^14.1.0",
"@angular/compiler-cli": "^14.1.0",
"@types/node": "^18.0.6",
"typescript": "4.8.3"
"typescript": "^4.7.4"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<gd-loading-mask [loadingMask]="isLoading"></gd-loading-mask>
<div class="wrapper" (contextmenu)="onRightClick()">
<div class="top-panel" *ngIf="!runPresentation">
<gd-logo [logo]="'viewer'" icon="eye"></gd-logo>
<gd-top-toolbar class="toolbar-panel">
<gd-logo [logo]="'viewer'" icon="eye" *ngIf="showToolBar"></gd-logo>
<gd-top-toolbar class="toolbar-panel" *ngIf="showToolBar">
<gd-button [icon]="'folder-open'" title="{{'Browse files' | translate}}" (click)="openModal(browseFilesModal)"
*ngIf="browseConfig" ></gd-button>

Expand Down Expand Up @@ -35,7 +35,7 @@

<gd-button [disabled]="formatDisabled" [icon]="'search'" title="{{'Search' | translate}}" (click)="openSearch()"
*ngIf="searchConfig && !ifPresentation()" ></gd-button>
<gd-search (hidePanel)="showSearch = !$event" *ngIf="showSearch" ></gd-search>
<gd-search (hidePanel)="openSearch(false)" #search [hidden]="!showSearch" ></gd-search>

<div class="toolbar-panel-right">
<div class="language-menu mobile-hide" *ngIf="showLanguageMenu">
Expand Down Expand Up @@ -76,7 +76,7 @@
<gd-document class="gd-document" *ngIf="(file &&
(ifExcel() && !htmlModeConfig) ||
(ifPresentation() && isDesktop && !runPresentation) ||
(!ifExcel() && !ifPresentation()))" [file]="file" [mode]="htmlModeConfig" [showActiveSlide]="true" gdScrollable
(!ifExcel() && !ifPresentation()))" [file]="file" [mode]="htmlModeConfig" [showActiveSlide]="true" gdScrollableEdited
[preloadPageCount]="viewerConfig.preloadPageCount || 0" [selectedPage]="selectedPageNumber" gdRenderPrint [htmlMode]="htmlModeConfig" gdMouseWheel (mouseWheelUp)="onMouseWheelUp()" (mouseWheelDown)="onMouseWheelDown()"></gd-document>
<gd-excel-document class="gd-document" *ngIf="file && ifExcel() && htmlModeConfig" [file]="file" [mode]="htmlModeConfig" gdScrollable
[preloadPageCount]="viewerConfig.preloadPageCount || 0" gdRenderPrint [htmlMode]="htmlModeConfig"></gd-excel-document>
Expand Down
1 change: 1 addition & 0 deletions Demos/ASP.NET Web Forms/src/ClientApp/src/index.prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GroupDocs.Viewer UI</title>
<base href="#uiPath#">
<link rel="stylesheet" href="custom.css">
</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit df16912

Please sign in to comment.