Skip to content

Fast scroll zoom results in out of memory error #3615

Closed
@arnog

Description

@arnog

See https://codepen.io/arnog/pen/YgZdEZ

  1. Create a heatmap plot with about 500 x 500 elements
  2. Configure the plot with scrollZoom = true and zsmooth = 'fast'
  3. Use the mouse wheel to zoom in rapidly into the plot

Result:

  • the plot is not zoomed in and the console displays "Uncaught RangeError: Invalid array length"

The array being created is the pixel array in which to draw the interpolated heatmap at traces/heatmap/plot.js:238

The problem seems to be that imageWidth and imageHeight are used here and later in the function, perhaps instead of canvasW and canvasH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions