05-03-2018 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-03-2018 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
05-03-2018 15:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-03-2018 15:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-03-2018 15:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-03-2018 23:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you so much!

05-04-2018 02:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-04-2018 02:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
For reference, I had to move the 'result' text tag up before the listing of the 'image' tags.

