Skip to main content
pete.manzel
Inspiring
June 12, 2021
Answered

HTML5 Canvas - Hide Mouse

  • June 12, 2021
  • 2 replies
  • 1040 views

Hi, 

i am working on a projekt that is going to run in a chromium kiosk.

I am trying to hide the mouse (arrow) without success.

 

Which is the best way to hide the mouse?

 

Thanks!

Pete

    This topic has been closed for replies.
    Correct answer pete.manzel

    Hi,

    i added the style tag 

    cursor:none;

    in the html document.

     

    That solution worked for me!

    2 replies

    Legend
    June 13, 2021

    If it's for a kiosk, you may as well just hide the mouse cursor for the entire document.

    pete.manzel
    pete.manzelAuthorCorrect answer
    Inspiring
    June 13, 2021

    Hi,

    i added the style tag 

    cursor:none;

    in the html document.

     

    That solution worked for me!

    JoãoCésar17023019
    Community Expert
    Community Expert
    June 12, 2021

    Hi.

     

    This should work:

    canvas.style.cursor = "none";

     

    Please let us know.

     

    Regards,

    JC

    pete.manzel
    Inspiring
    June 12, 2021

    Hi and thank you JC,

    do i ad it as global skript?

     

    Regards,

    Pete

    JoãoCésar17023019
    Community Expert
    Community Expert
    June 12, 2021

    No, because the canvas global variable won't be defined yet.

     

    Put the code in the first frame of the main timeline.