changeset 1750:0a472b428859

log, comment Ignore-this: 5b259f2d235febf02f15359701484ee5
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 24 May 2018 06:30:44 +0000
parents 468a13c4b910
children 3a12665808e8
files light9/web/graph.coffee light9/web/light9-color-picker.html
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/graph.coffee	Thu May 24 06:23:28 2018 +0000
+++ b/light9/web/graph.coffee	Thu May 24 06:30:44 2018 +0000
@@ -204,6 +204,8 @@
   applyAndSendPatch: (patch) ->
     console.time('applyAndSendPatch')
     if !Array.isArray(patch.addQuads) || !Array.isArray(patch.delQuads)
+      console.timeEnd('applyAndSendPatch')
+      log('corrupt patch')
       throw new Error("corrupt patch: #{JSON.stringify(patch)}")
 
     @_validatePatch(patch)
--- a/light9/web/light9-color-picker.html	Thu May 24 06:23:28 2018 +0000
+++ b/light9/web/light9-color-picker.html	Thu May 24 06:30:44 2018 +0000
@@ -305,6 +305,9 @@
            if (this.closeTime && this.closeTime > Date.now() - 500) {
                return;
            }
+
+           // if scrolling put us here, don't open large. require deliberate entering motion.
+           
            this.showLarge(ev.pageX, ev.pageY);
        }
        moveLargeCrosshair(pos, _elem) {