Apexcharts.js: Added non-passive event listener to a scroll-blocking 'touchstart' event.

Created on 26 Sep 2019  路  6Comments  路  Source: apexcharts/apexcharts.js

Is your feature request related to a problem? Please describe.
In chrome I see warning

apexcharts.esm.js:7 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Describe the solution you'd like
Problem was described here

https://github.com/angular/components/issues/4221

And it seems that we should use

document.addEventListener('touchstart', handler, {passive: true});

Describe alternatives you've considered
It can be problem from one of dependencies of apexchart. I can't find touchstart in source code of apexcharts.

Additional context
I attaching screenshot

Screenshot from 2019-09-26 12-19-41

I experienced problem using vue.

Most helpful comment

can confirm the same problem - any news here?

All 6 comments

I hit this one as well, and it spammed my console heavily due to using it on a dashboard with lots of charts that periodically updates.

After doing some grepping based on the stack trace messages I narrowed it down to the "zoom" functionality. I don't need this at the moment, so disabling it made these messages disappear:

// options
{
  chart: {
    zoom: {
      enabled: false
    }
  }
}

Edit: I'm using [email protected] -> [email protected]

I hit this one as well, and it spammed my console heavily due to using it on a dashboard with lots of charts that periodically updates.

After doing some grepping based on the stack trace messages I narrowed it down to the "zoom" functionality. I don't need this at the moment, so disabling it made these messages disappear:

// options
{
  chart: {
    zoom: {
      enabled: false
    }
  }
}

I have the same issue, but disabling zoom didn't help.

I have same issue, disabling zoom does not help. This was first reported almost a year ago. Any progress?

Like @alenamm and @osxisl, disabling zoom not work, and it's not a solution 馃槩

can confirm the same problem - any news here?

I also ran into this problem, please tell me how to fix it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maasha picture maasha  路  3Comments

jeroenpol picture jeroenpol  路  3Comments

EroTiXx picture EroTiXx  路  3Comments

jlil picture jlil  路  3Comments

georgehardy picture georgehardy  路  3Comments