on master help sign in
make sure clicks are registered on buttons
commite29756414098ff58f8bc6635aa39aef11cfc2179 authorEvan Czaplicki <info@elm-lang.org> dateThu 1 Aug 2013, 19:47 (13 years ago) parent3c7f45f
1 file changed+8
libraries/Native/Graphics/Input.js+8
libraries/Native/Graphics/Input.js+8
@@ -120,6 +120,14 @@ Elm.Native.Graphics.Input = function(elm) {
120120 btn.addEventListener('mouseup' , up);
121121
122122 btn.appendChild(btn.elmUp);
123+
124+ var clicker = newNode('div');
125+ clicker.style.width = btn.elmUp.style.width;
126+ clicker.style.height = btn.elmUp.style.height;
127+ clicker.style.position = 'absolute';
128+ clicker.style.top = 0;
129+ btn.appendChild(clicker);
130+
123131 return btn;
124132 }
125133