-1

I have an issue about embedded canvas is that I don't want to use double click feature on it.

While API given by Sketchfab doesn't offer such functionality, is there a way to block event getting there in the first place ?

UPDATE:

I am embedding model from Sketchfab.

Here's the embed:

<div class="sketchfab-embed-wrapper"><iframe width="640" height="480" src="https://sketchfab.com/models/9eb60eebc20e45c4b586e1a6fe6c5983/embed" frameborder="0" allowvr allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>
...
8bra1nz
  • 697
  • 6
  • 18
  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the [How to Ask](http://stackoverflow.com/help/how-to-ask) page for help clarifying this question. – hindmost Mar 07 '17 at 07:30
  • @hindmost Updated. – 8bra1nz Mar 07 '17 at 07:52

2 Answers2

1

Since you stated that you are using Sketchfab (which is embedded with an iframe) this is not possible due to XSS protection. No major browser will allow you to access embedded cross site content.

Take a look at this link for more information about cross-frame scripting and security.

loafer
  • 146
  • 3
0

can you check this? Remove Event

$('canvas').off('dblclick');

https://jsfiddle.net/gtbypwLb/

Community
  • 1
  • 1
cbalakus
  • 323
  • 3
  • 12