summaryrefslogtreecommitdiff
path: root/js/record.concat.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/record.concat.js')
-rw-r--r--js/record.concat.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/record.concat.js b/js/record.concat.js
index 2d2a615..d9a10a8 100644
--- a/js/record.concat.js
+++ b/js/record.concat.js
@@ -1016,6 +1016,8 @@ function GifEncoder(){
function hide(id){ document.getElementById(id).style.display="none" }
function enable(id){ document.getElementById(id).removeAttribute("disabled") }
function disable(id){ document.getElementById(id).setAttribute("disabled","disabled") }
+ function clickable(id){ document.getElementById(id).style.pointerEvents = "auto" }
+ function unclickable(id){ document.getElementById(id).style.pointerEvents = "none" }
function px(n){ return (~~n) + "px" }
function record(e){
e.stopPropagation()
@@ -1032,6 +1034,7 @@ function GifEncoder(){
requestAnimationFrame(recordloop)
status("recording")
disable("record")
+ unclickable("curtain")
}
function recordloop(){
var canvas = document.createElement("canvas")
@@ -1104,6 +1107,7 @@ function GifEncoder(){
rendering = false
enable("record")
enable("save")
+ clickable("curtain")
}
function save (e){
e.stopPropagation()