Skip to content

Commit

Permalink
Fix vls diagnostic warnings
Browse files Browse the repository at this point in the history
Signed-off-by: ktprograms <[email protected]>
  • Loading branch information
ktprograms committed Dec 27, 2021
1 parent 3ecc122 commit b87e646
Show file tree
Hide file tree
Showing 3 changed files with 70,153 additions and 8 deletions.
70,145 changes: 70,142 additions & 3 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
/**
* Manually retrieve the path and return its base64
*
* @returns {String}
* @returns {Promise<String>}
*/
async getBase64FromImage() {
const file = await axios.get(this.davPath)
Expand All @@ -128,8 +128,8 @@ export default {
* Handle zooming
* Code based on https://stackoverflow.com/a/46833254/15603854
*
* @param {Event} event the scroll event
* @returns {null}
* @param {WheelEvent} event the scroll event
* @returns {void}
*/
updateZoom(event) {
const isZoomIn = event.deltaY < 0
Expand Down Expand Up @@ -171,7 +171,7 @@ export default {
/**
* Dragging handlers
*
* @param {Event} event the event
* @param {MouseEvent} event the event
*/
dragStart(event) {
this.dragX = event.clientX
Expand All @@ -180,13 +180,19 @@ export default {
this.$el.onmouseup = this.dragEnd
this.$el.onmousemove = this.dragHandler
},
/**
* @param {MouseEvent} event the event
*/
dragEnd(event) {
event.preventDefault()

this.dragging = false
this.$el.onmouseup = null
this.$el.onmousemove = null
},
/**
* @param {MouseEvent} event the event
*/
dragHandler(event) {
const { clientX, clientY } = event

Expand Down

0 comments on commit b87e646

Please sign in to comment.