Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Plotly in IWebBrowser2 emulating IE11 can not zoom

I’m using an emulated browser created in C++, using the IWebBrowser2. I want to make a plotly plot, so i simply use a basic code example:
var trace1 = {
x: [1, 2, 3, 4],
y: [10, 15, 13, 17],
type: ‘scatter’
var trace2 = {
x: [1, 2, 3, 4],
y: [16, 5, 11, 9],
type: ‘scatter’
var data = [trace1, trace2];
Plotly.newPlot(‘myDiv’, data);

The plot is being displayed fine, but when i click and drag to zoom, nothing happens. When i leave the ‘div’, however, the zooming begins (i don’t even have to drag). When the mouse enters the div again, the zoom completes.

I have tested the very same html file in IE, and it works perfectly.

Anybody have an idea what’s going on here?

I got this to work by setting the emulation to IE11 (instead of 10). However, when I click once on the plot, the modebar disappears. By starting a drag (to zoom) the modebar reappears. Moving the cursor out and back in to the div makes it reappear as well.

What can cause this behaviour?