fix hover being undefined
This commit is contained in:
parent
b39125fbfb
commit
8b8dbac2b8
|
@ -171,9 +171,11 @@ class Renderer2D extends Renderer {
|
|||
}
|
||||
|
||||
getPointedColor() {
|
||||
return this.getColorIndexOfPixel(
|
||||
...this.store.getState().canvas.hover,
|
||||
);
|
||||
const { hover } = this.store.getState().canvas;
|
||||
if (!hover) {
|
||||
return null;
|
||||
}
|
||||
return this.getColorIndexOfPixel(...hover);
|
||||
}
|
||||
|
||||
updateView(view, origin) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user