+ 18

Have a Div click another Div when its over it.

Y'all have been very helpful so far I really appreciate it. I'm still stuck trying to get the claw to click the emojis. I left a few of my attempts at the bottom of the code if anyone can help. https://code.sololearn.com/W7NTGTmKz0zX/?ref=app

19th Oct 2018, 4:55 PM
bobbie
bobbie - avatar
8 Answers
+ 12
Hi Tom Wiscombe if you know how to add that I'm interested it was useful during testing but it can be exclusively claw now.
20th Oct 2018, 8:06 PM
bobbie
bobbie - avatar
+ 10
Burey is A Genius we are so lucky to have him here Thank you to everyone who helped it's almost finished and a fun community creation!!! https://code.sololearn.com/W1usyPERaCwd/?ref=app
20th Oct 2018, 3:03 AM
bobbie
bobbie - avatar
+ 5
Is this finished? I would like to contribute if it isn't. What is the problem you're having? You want the claw to collect the emojis and not the user taps?
20th Oct 2018, 2:07 PM
Tom Wiscombe
Tom Wiscombe - avatar
+ 5
Yep, that's it. You just need to prevent the clicks from being processed on the emojis class. ODLNT is right. The easiest way is with CSS. I was trying with JS and got nowhere lol.
21st Oct 2018, 12:46 PM
Tom Wiscombe
Tom Wiscombe - avatar
+ 4
hey Sergei No I was reading about these pointer events but I still don't know how to get this working yet. If you know how to get it clicking things please let me know. Thanks
20th Oct 2018, 12:25 AM
bobbie
bobbie - avatar
+ 4
Sounds good, I'll see what I can do 🙂
20th Oct 2018, 8:09 PM
Tom Wiscombe
Tom Wiscombe - avatar
+ 3
Hi Bobbie. In case you need bypass events trough some elements `pointer-events:none;` might be added as css rule to the 'non events' element. In case you need handle events on another element try to use css 'position:relative' or 'position:absolute' and 'z-index' styles to place one element above another.
19th Oct 2018, 9:51 PM
Sergei No
Sergei No - avatar
+ 3
Bobbie It seems that Sergei No was pointing you in the right direction, yes the pun was intended. Any way to bypass the emojis' mouse clicks and touch events you need to add [pointer-events:none] to .emojis{}.
21st Oct 2018, 10:40 AM
ODLNT
ODLNT - avatar