Mouse event on transparent background

后端 未结 3 1063
臣服心动
臣服心动 2020-12-03 18:00

I have create several canvas with transparent background and wanna make some move event on it.

However, I found that all mouse event (e.g. MouseLeftButtonDown) canno

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 18:34

    Note that there is a difference in setting the background to transparent as opposed to not setting it (or setting it to null). My experience is that hit-testing works on transparent, but not on a null background.

提交回复
热议问题