New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11 + compatibility mode (IE 7): onContainerMouseDown doesn't pass event and causes an error #7850

Closed
KacperMadej opened this Issue Feb 12, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@KacperMadej
Contributor

KacperMadej commented Feb 12, 2018

Behaviour

IE11 + compatibility mode (IE 7):
onContainerMouseDown doesn't pass event and causes an error

Live demo with steps to reproduce

<html> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
        <title>Highcharts Example</title> 
        <!-- 1. Add JavaScript in the head of the page --> 
        <script src="https://github.highcharts.com/highcharts.src.js"></script>
        <script src="https://github.highcharts.com/modules/oldie.src.js"></script>
        <script src="https://github.highcharts.com/modules/exporting.src.js"></script>
    </head>

    <body>
        <div id="container" style="width: 600px; height: 400px;"></div>

        <script>
          Highcharts.chart('container', {
            series: [{
              data: [1,2,3]
            }]
          });
        </script>
    </body> 
</html> 

Steps:

  1. click on the chart
  2. error

Affected browser(s)

IE11 + compatibility mode (IE 7)

@KacperMadej

This comment has been minimized.

Contributor

KacperMadej commented Feb 12, 2018

Event is not passed and it's resolved for e.g. H.addEvent or pointer.normalize. Normalizing before accessing any event properties resolves the problem.

I'll fix the reported issue and I am adding this comment for reference for potential, further, related issues.

@KacperMadej

This comment has been minimized.

Contributor

KacperMadej commented Feb 12, 2018

@zlateskud
Fix suggested, please test with the code loaded as:

        <script src="http://github.highcharts.com/5a83eb3/highcharts.src.js"></script>
        <script src="http://github.highcharts.com/5a83eb3/modules/oldie.src.js"></script>
        <script src="http://github.highcharts.com/5a83eb3/modules/exporting.src.js"></script>

(Unless the PR will be accepted - then you could use the github code source as seen in the initial comment for this issue.)

@zlateskud

This comment has been minimized.

zlateskud commented Feb 12, 2018

@KacperMadej

Error fixed but, the event(hover, click) don't work everytime.
I think this works only on bottom part of the diagram.

I attach a video.

chart video.zip

@zlateskud

This comment has been minimized.

zlateskud commented Feb 13, 2018

@KacperMadej @TorsteinHonsi
Hi,
if i use the code below, the event does not start(IE11 compatibility mode 7 ), with IE native it works.

plotOptions : {
series : {
point : {
events : {
click : function (e) {
alert('From: ' + this.from + ', to: ' + this.to + ', weight:' + this.weight);
}
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment