05-03-2018 08:36
05-03-2018 08:36
I've made a repo here where you can see the code: https://github.com/outragedpinkracoon/dice_roller
My app displays some images of dice, and when you click them it shows the result. However, the click event only registers once on the dice, or in some parts of the image not at all.
Can you see where I have gone wrong?
Answered! Go to the Best Answer.
05-03-2018 15:43
05-03-2018 15:43
The "result" label seems to create a mask that extends above and to the right of the displayed text.
This area overlaps some of the dice and these cannot be clicked. This seems to be a bug.
If you move the result label between "dice_tray" and "d4, it will work.
05-03-2018 15:43
05-03-2018 15:43
The "result" label seems to create a mask that extends above and to the right of the displayed text.
This area overlaps some of the dice and these cannot be clicked. This seems to be a bug.
If you move the result label between "dice_tray" and "d4, it will work.
05-03-2018 23:18
05-03-2018 23:18
Thank you so much!
05-04-2018 02:09
05-04-2018 02:09
For reference, I had to move the 'result' text tag up before the listing of the 'image' tags.