Good day all,
I want to share a DWG file with the Autodesk Online Free viewer. My file includes rasters. With the viewer online, every layer is highlighted when mouse is put over. It's ok with polylines, but since there's a raster in the back, the screen becomes all orange and you can't see the details of the raster correctly anymore.
I'd like to know if there's a way to disable the, I believe, mouseover function with the developper tool in the browser (Chrome, Edge, etc.)
Here's an example of a shared file to remove the "mouseover" function in the developper tool.
I searched on Google if anyone has done the same. Couldn't find any solution. I found the following, but it's a different platform.
https://aps.autodesk.com/blog/viewer-tip-disable-mouse-hover-highlight
I tried removing the event listeners (mouseover, mouseup, mouse...) in the developper tool, but nothing changed.
I am not a programmer, so if a solution is found, please share a detailed procedure.
You can use CSS to remove mouseover event for that page:
#viewer-wrapper canvas {
pointer-events: none;
}
You can click the Elements tab in devtools, then find and click the <canvas>
element. At the right Styles panel, add this line pointer-events: none
in #viewer-wrapper canvas
element.
Please note this only take effect when you keep devtools open, and it can't be saved when you close devtools or refresh the page.