Skip to content

TouchStart body event error #162

Open
@MahrezB

Description

@MahrezB

Expected Behavior

No exception occurs when I do a touch

Current Behavior

In mobile when I touch the screen an exception occurs:
image

Steps to Reproduce (for bugs)

1.Go to any D3Plus sample with tooltip
2.Enable browser debugger and switch to mobile device
3.Click in any place

Root cause

In method render of class Viz a listener is added to touchstart event :
select("body").on(touchstart.${this._uuid}, touchstartBody.bind(this));
touchstartBody function expects to receive this parameters function(d, i, x, event),
but touchstartBody is calld with this parameter (event, data)
I want to notify also that this listener is never removed

Your Environment

  • Browser Name: Chrome Version 93.0.4577.63 (Build officiel) (64 bits)
  • Operating System and Version: Windows 10

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions