$(window).click(() => console.log("click"));--
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 jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d89c9b46-14dc-424f-bcc8-d2aeeb528a93%40googlegroups.com.
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 <dario....@gmail.com> 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 jupyter+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d89c9b46-14dc-424f-bcc8-d2aeeb528a93%40googlegroups.com.
--
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 jupyter+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAPDWZHx6nPmxFaq-BaiYd35tWqT6id66Pkkiu5WMCQsw8T8QGg%40mail.gmail.com.
Any suggestion around this? For context, I am trying to hide some code comments but every time I click they reappear.Kind regards
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 <dario....@gmail.com> 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 jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d89c9b46-14dc-424f-bcc8-d2aeeb528a93%40googlegroups.com.
--
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 jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAPDWZHx6nPmxFaq-BaiYd35tWqT6id66Pkkiu5WMCQsw8T8QGg%40mail.gmail.com.
--
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 jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAByD6GMuHQcLEVJWyK3Afo_ZZryg9akx%2B0uCfrGqqXD5-sY4jA%40mail.gmail.com.
window.addEventListener("click", () => console.log("you clicked me!"), true);
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAPDWZHxjNb9NT9YKb9RDcR%3DNdjANs9AOOXgqNLTbzAXkiGvz1g%40mail.gmail.com.