1Every time I open chrome dev tools with responsive resizing, event listener like ‘click’, ‘mouseover’ aren’t fired.(Or just aren’t showing on screen).
For example,
as a picture I attached, I implemented menu bar(icon on right top) with click event for responsive. When I click menu bar, it’s supposed to be opened. But nothing happens on responsive screen.
It seems like it’s working since console.log(‘click’) in this function is working.
How can I check and see visually if event listener is fired while I open dev tool with responsive screen? I didn’t implement this click event for full screen so I need to check this event on responsive size.
Another example,
mouse event doesn’t show on responsive screen. But full size, it does as a second picture I attached. So I can check at least if this event is actually working.
I have been trying to figure it out but I can’t find solution.
I would be grateful if someone could give me advise. Thank you.
(https://phpout.com/wp-content/uploads/2023/06/kSH8o.png)](https://phpout.com/wp-content/uploads/2023/06/kSH8o.png)](https://phpout.com/wp-content/uploads/2023/06/pmLuw.png)](https://phpout.com/wp-content/uploads/2023/06/pmLuw.png)
2
Answers
Thank you everyone and sorry for making a confusing. I attached some part of codes. But I don't think it's about code and it's related to my settings of dev tool since this always happens. I found solution that I can check the implemented event listener in dev tool like the picture I attached. But I want to see visually event working when I apply The Toggle Device Toolbar.
This video is the tutorial I'm working on and 2:05:30 is what I want to do but I can't do. I can't click the menu bar and it doesn't open on responsive size. But he clicks menu bar and opens successfully(click event is working visually) on same responsive size as mine in dev tool. https://youtu.be/P8YuWEkTeuE
Every project, when I open dev tool and apply The Toggle Device Toolbar, event listener can't be visible even if it's working successfully. And there's no problem when I don't apply the toggle device toolbar and I can see event firing visually.
It might be small problem but I have been really struggling with this. Sorry for my English.
javascript*
*****html
*****************css
without any code it’s quite difficult to answer your question!
perhaps it’s a question of "element" clicked. If the click handler is on one element but in fact it’s another element which is really clicked (DOM structure). Dev tools doesn’t show anything.
you can put the following function in your code.
this function is at body level to check which element has been clicked.
if the clicked element doesn’t have any handler, the event goes up to the body and you’ll have in console the target and the currentTarget.
perhaps that can help…