Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8733079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:34:20+00:00 2026-06-13T09:34:20+00:00

I got three HTML5 canvas elements. One is transparent and completely covers the other

  • 0

I got three HTML5 canvas elements. One is transparent and completely covers the other two, that are not overlapping (What I draw on it must be superimposed, so its z-index must be the highest).

The problem is that the topmost one (overlay_area) prevents the other two receiving events. I don’t need events to be received by the topmost one, so

  • Is there a way to stop the topmost canvas receiving events?
  • if not, is there a way to pass the events to the bottom canvases?

For this project, I need to use hammer.js and no jquery.

<canvas id="overlay_area"
        style="z-index: 8; position:absolute; left:0px; top:35px;"
        height="762px" width="968px">
        This text is displayed if your browser does not support HTML5 Canvas.
        </canvas>

    <canvas id="wave_area"
        style="z-index: 5;
        position:absolute;
        left:0px;
        top:35px;"
        height="762px" width="200px">
        This text is displayed if your browser does not support HTML5 Canvas.
        </canvas>

    <canvas id="edit_area"
        style="z-index: 5;
        position:absolute;
        left:200px;
        top:35px;"
        height="762px" width="768px">
        This text is displayed if your browser does not support HTML5 Canvas.
    </canvas>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:34:21+00:00Added an answer on June 13, 2026 at 9:34 am

    Theres a few ways to achieve this like Frederic points out in his answer. Another way to ignore mouse events on an element is to assign the following style.

    pointer-events:none;
    

    Its well decently supported and works great.

    Live Demo

    So in your case it would be

    <canvas id="overlay_area"
        style="z-index: 8; position:absolute; left:0px; top:35px; pointer-events:none;"
        height="762px" width="968px">
        This text is displayed if your browser does not support HTML5 Canvas.
        </canvas>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some html that looks like this: <ol> <div> <li>one</li> </div> <div> <li>two</li>
I got some graphic design that was made using JavaScript / Html5 Canvas. Take
I've got three files on AIX that I need to import into a SQL
I've got three columns inside of a div that is the full page width.
I've got three models. Sales, items, and images. I'd like to validate that when
In Unix, I have got three main files. One of them is a library
I have got my HTML5 project a bit further along - I have one
Okay I've got my base template and I extended it in my three other
I've got an HTML5 audio player that works on Safari on the PC, but
I've got three images that I'm trying to use for a box like this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.