• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

147
Views
How do I force scroll wheel events to only affect a canvas filled with BabylonJS

I have a web app that contains a canvas filled with a BabylonJS created scene (with an ArcRotateCamera) and other html content. I want to use the scroll wheel of the mouse to zoom the camera in the canvas. This works as long as the html content is not scrollable. As soon as the html becomes scrollable the scroll wheel affects both, the zoom of the canvas (that is what I want) and the part of the HTML page shown (this what I do not want here). How could I prevent the scroll wheel from affecting the HTML contents (which ultimately scrolls the canvas offscreen)?

almost 3 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error