awesome-image-viewer
Advanced tools
Comparing version 1.0.53 to 1.0.54
{ | ||
"name": "awesome-image-viewer", | ||
"description": "React, Angular, Vue, and Typescript compatible image viewer", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"author": "Mostafa Mohammadzadeh", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
declare type image = { | ||
@@ -33,3 +32,3 @@ mainUrl: string; | ||
protected isHudShow: boolean; | ||
protected dbcTimer: NodeJS.Timeout; | ||
protected dbcTimer: any; | ||
protected dbcWaiting: boolean; | ||
@@ -36,0 +35,0 @@ protected isSwiping: boolean; |
@@ -377,2 +377,3 @@ "use strict"; | ||
const imageContainer = imageContainers.item(this.currentSelected); | ||
const touchSurface = this.view.getElementsByClassName('touchSurface')[0]; | ||
if (!imageContainer.classList.contains('zoom')) { | ||
@@ -386,2 +387,3 @@ imageContainer.classList.add('zoom'); | ||
this.view.classList.add('halfHud'); | ||
touchSurface.style.display = 'none'; | ||
} | ||
@@ -393,2 +395,3 @@ else { | ||
this.view.classList.remove('halfHud'); | ||
touchSurface.style.display = 'block'; | ||
} | ||
@@ -395,0 +398,0 @@ } |
@@ -36,3 +36,3 @@ //custom types: | ||
protected isHudShow: boolean; | ||
protected dbcTimer;//todo | ||
protected dbcTimer: any; | ||
protected dbcWaiting: boolean; | ||
@@ -442,2 +442,3 @@ protected isSwiping: boolean; | ||
const imageContainer = <HTMLElement> imageContainers.item(this.currentSelected); | ||
const touchSurface = <HTMLElement> this.view.getElementsByClassName('touchSurface')[0]; | ||
if(!imageContainer.classList.contains('zoom')){ | ||
@@ -451,2 +452,3 @@ imageContainer.classList.add('zoom'); | ||
this.view.classList.add('halfHud'); | ||
touchSurface.style.display = 'none'; | ||
}else{ | ||
@@ -457,2 +459,3 @@ imageContainer.classList.remove('zoom'); | ||
this.view.classList.remove('halfHud'); | ||
touchSurface.style.display = 'block'; | ||
} | ||
@@ -459,0 +462,0 @@ } |
94850
1895