antvis / antvis/F2

支付宝小程序内使用报错TypeError: Cannot read property 'x' of null

Open
#1,125 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

如题,错误报出的位置是这里:
https://github.com/antvis/F2/blob/5f2feb660409086ab1fe4f03a2f12422cc8c9b04/src/interaction/mixin/move.js#L23

是不是考虑给 currentPoint 一个默认对象:
https://github.com/antvis/F2/blob/5f2feb660409086ab1fe4f03a2f12422cc8c9b04/src/interaction/mixin/move.js#L22

Contributor guide

Open the contributing guide

Research direction

Inspect src/interaction/mixin/move.js at the referenced lines and reproduce the TypeError in an Alipay mini-program. Verify that the move interaction handles a null currentPoint without accessing its properties, and confirm the reported error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.