Problem with centerMouse()

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

Problem with centerMouse()

Post by Rado1 »

Usage of centerMouse() causes problems with browsing of ZApplication and AppState components in the Project tree. If centerMouse() is used in an ZExpression placed to the OnUpdate section, selecting the containing ZApplication or AppState centers mouse in the preview area and mouse cannot be used by the editor. The only way is to navigate by keyboard. I would expect that previewing components do not execute OnUpdate code.

I hope you can reproduce the problem by opening the attached project - just click the App or AppState1 in the Project tree.
Attachments
test.zgeproj
testing project
(366 Bytes) Downloaded 425 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

This is now fixed in the latest beta. Please download and try again.
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

Post by Rado1 »

Great! I tested the fix and it works as expected. Thanks.
Post Reply