# HG changeset patch # User Drew Perttula # Date 2018-06-07 17:39:41 # Node ID 4bd88d5fcaf8dad98c725d34a88f5beea3998003 # Parent 11affc6d6045323e8cfb8a23fab8895136102483 don't let mouse start outside large colorpick so much Ignore-this: ac2fed0d6f9f2056092d292e6eb3ff97 diff --git a/light9/web/light9-color-picker.html b/light9/web/light9-color-picker.html --- a/light9/web/light9-color-picker.html +++ b/light9/web/light9-color-picker.html @@ -296,8 +296,8 @@ pos = [-999, -999]; } this.moveLargeCrosshair(pos); - this.$.large.style.left = (x - Math.max(20, Math.min(380, pos[0]))) + 'px'; - this.$.large.style.top = (y - Math.max(20, Math.min(180, pos[1]))) + 'px'; + this.$.large.style.left = (x - Math.max(60, Math.min(380, pos[0]))) + 'px'; + this.$.large.style.top = (y - Math.max(60, Math.min(180, pos[1]))) + 'px'; } catch(e) { this.moveLargeCrosshair([-999, -999]); this.$.large.style.left = (400 / 2) + 'px';