changeset 1787:4bd88d5fcaf8

don't let mouse start outside large colorpick so much Ignore-this: ac2fed0d6f9f2056092d292e6eb3ff97
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 07 Jun 2018 17:39:41 +0000
parents 11affc6d6045
children 8b9b8584ee42
files light9/web/light9-color-picker.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/light9-color-picker.html	Thu Jun 07 08:11:17 2018 +0000
+++ b/light9/web/light9-color-picker.html	Thu Jun 07 17:39:41 2018 +0000
@@ -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';