Created
November 28, 2023 17:53
-
-
Save felddy/bf09dffaefa3f0a469e8effa0a970ea9 to your computer and use it in GitHub Desktop.
Patch for FoundryVTT to correct issue 61 of the touch-vtt module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# Touch-VTT Issue 61 Fix | |
# ===================== | |
PATCH_DOC_URL="https://github.com/Oromis/touch-vtt/issues/61" | |
PATCH_NAME="Fix for touch-vtt issue #61" | |
log "Applying \"${PATCH_NAME}\"" | |
log "See: ${PATCH_DOC_URL}" | |
# Ensure 'patch' utility is installed | |
apk add patch | |
# Apply patch | |
patch --backup --posix --strip=0 --unified --verbose << 'EOF' | |
--- resources/app/public/scripts/foundry.js | |
+++ resources/app/public/scripts/foundry.js | |
@@ -31920,7 +31920,7 @@ | |
// Determine double vs single click | |
const now = Date.now(); | |
- const isDouble = (now - this.lcTime) <= 250; | |
+ const isDouble = (now - this.lcTime) <= 250 && (now - this.lcTime) > 10; | |
this.lcTime = now; | |
// Set the origin point from layer local position | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment