From: Jason Woofenden Date: Sat, 7 Nov 2015 04:20:03 +0000 (-0500) Subject: boxes don't click/hover as if they're filled X-Git-Url: https://jasonwoof.com/gitweb/?p=crayon_mockup.git;a=commitdiff_plain;h=f65a88a4b471687241a8cb8ed43f3573b77a583e;hp=ecf9cebe3e8d5274c7247b5e2baf3527bd2c026a boxes don't click/hover as if they're filled --- diff --git a/main.coffee b/main.coffee index 0a60f32..8f20313 100644 --- a/main.coffee +++ b/main.coffee @@ -238,8 +238,9 @@ class RectWidget extends Widget new_prox *= new_prox if new_prox < prox prox = new_prox - if in_x and in_y and prox > PROX_MAX - prox = PROX_MAX - 1 + # "hit" anything inside + #if in_x and in_y and prox > PROX_MAX + # prox = PROX_MAX - 1 return prox resize: (wh) -> dw = wh.w - @width @@ -451,7 +452,7 @@ init = -> supply_add PolylineWidget, y: 25, nodes: [{x: 0, y: 0}, {x: 50, y: 0}] supply_add PolylineWidget, x: 25, nodes: [{x: 0, y: 0}, {x: 0, y: 50}] supply_add PolylineWidget, x: 10, nodes: [{x: 0, y: 0}, {x: 15, y: 50}, {x: 30, y: 0}] - supply_add PolylineWidget, x: 0, nodes: [{x: 0, y: 50}, {x: 17, y: 0}, {x: 33, y: 50}, {x: 50, y: 0}] + supply_add PolylineWidget, nodes: [{x: 0, y: 50}, {x: 17, y: 0}, {x: 33, y: 50}, {x: 50, y: 0}] # editor state controls_layer = { all: {}, selected: {} }