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