update some icons and stuff
This commit is contained in:
@@ -145,7 +145,7 @@ Viewer.prototype.renderSponsorsSimple = function() {
|
||||
if (window.innerHeight < minWindowHeight) {
|
||||
scaleHeight = window.innerHeight/minWindowHeight
|
||||
}
|
||||
|
||||
|
||||
let scale = scaleWidth < scaleHeight ? scaleWidth : scaleHeight
|
||||
document.querySelector(".sponsors").style.height = (scale*bannerHeight)+"px"
|
||||
}
|
||||
@@ -186,7 +186,7 @@ Viewer.prototype.renderSponsorsSimple = function() {
|
||||
// }
|
||||
|
||||
Viewer.prototype.keyboardEvent = function(evt) {
|
||||
if (evt.ctrlKey || evt.altKey) {
|
||||
if (evt.ctrlKey || evt.altKey || evt.metaKey) {
|
||||
return // prevent custom shortcuts from interfering with system shortcuts
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ function ImageViewer(viewer, file) {
|
||||
this.element.addEventListener("doubletap", (e) => { return this.doubleclick(e) })
|
||||
this.element.addEventListener("mousedown", (e) => { return this.mousedown(e) })
|
||||
this.element.addEventListener("mousedown", (e) => { return this.mousedown(e) })
|
||||
this.element.addEventListener("wheel", (e) => { return this.scroll(e) })
|
||||
// this.element.addEventListener("wheel", (e) => { return this.scroll(e) })
|
||||
document.addEventListener("mousemove", (e) => { return this.mousemove(e) })
|
||||
document.addEventListener("mouseup", (e) => { return this.mouseup(e) })
|
||||
|
||||
|
Reference in New Issue
Block a user