我编制了一个方案,其中两个部分使用机动车:
- ResizeRectangle draws a rectangle with handles and allows moving and resizing of the rectangle. It handles MouseEvents and MouseMotionEvents (MouseMove, MousePressed, MouseDragged and MouseReleased).
- IconGrid draws a grid of icons within the rectangle and allows selecting (clicking) an icon. It handles the MouseClicked event for this.
It all works fine under Windows. I tried to port the program to the Mac today, but there the MouseClicked event never gets fired. I put the MouseClicked event in ResizeRectangle, but there it also wont get fired. I put the MouseReleased event in IconGrid and that does get fired. So the problem really seems to be with the mouseClicked event.
我阅读了另一篇文章,其中说,在Mac,即便是小的Pixel变化,在摩西塞克,不会发射。 但是,即使我用我对空投的点火(因此不可能在新闻和释放之间移动烟火)时,烟火事件也发火。
Anyone else had this problem? Is this a bug on the Mac?