You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package and version you used: @pencil.js/component@1.12.0 pencil.js/image@1.12.0
Description
The Component's isHover function returns true only if the Component is either filled or stroked. Image can be drawn without neither of these and are not detected as hovered.
As with malePath, maybe Image need its own duplication of isHover to account for this.
constimg=newP.Image(scene.center,"url.png",{fill: "white",// <- The image can't be hovered without this});img.on("ready",()=>scene.add(img).render()).on("hover",console.log("Hover"));
The text was updated successfully, but these errors were encountered:
Information
Description
The Component's
isHover
function returns true only if the Component is either filled or stroked. Image can be drawn without neither of these and are not detected as hovered.As with
malePath
, maybe Image need its own duplication ofisHover
to account for this.May be fixed by a refacto when doing #67.
Reproduce by
The text was updated successfully, but these errors were encountered: