My guess is that the thing handling clicks in the notebook is stopping
propagation of the click event up to the window?

Jason


On Tue, Mar 24, 2020 at 12:31 PM Dario Panada <[email protected]>
wrote:

> Hello,
>
> I am creating a Jupyter extension to register clicks anywhere on the
> notebook webpage. I am using:
>
> $(window).click(() => console.log("click"));
>
>
> That works for any click, *except* the first click on an un-selected code
> cell. Once that becomes selected, further clicks register normally.
>
> Any advice as to why?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/d89c9b46-14dc-424f-bcc8-d2aeeb528a93%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/d89c9b46-14dc-424f-bcc8-d2aeeb528a93%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAPDWZHx6nPmxFaq-BaiYd35tWqT6id66Pkkiu5WMCQsw8T8QGg%40mail.gmail.com.

Reply via email to