View unanswered posts | View active topics It is currently 2022-07-04 11:30



Reply to topic  [ 4 posts ] 
 滚轮失效问题 
Author Message
初级会员

Joined: 2017-10-25 14:53
Posts: 68
Post 滚轮失效问题
设置network.setFocusOnClick(false);以后滚轮缩放就失效了。network.setWheelToZoom(true);也失效了是不是冲突了还是什么


2022-05-16 14:29
Profile
TWaver开发组

Joined: 2022-04-28 17:53
Posts: 11
Post Re: 滚轮失效问题
滚动缩放功能有效的前提是network有焦点,当network.setFocusOnClick(false)后,network就无法通过鼠标点击获取焦点了,所有不能缩放了,但如果是先点击network获取焦点后,再调用network.setFocusOnClick(false),则不会立即失效,只是当焦点不在network时,才会失效


2022-05-16 15:52
Profile
初级会员

Joined: 2017-10-25 14:53
Posts: 68
Post Re: 滚轮失效问题
sql wrote:
滚动缩放功能有效的前提是network有焦点,当network.setFocusOnClick(false)后,network就无法通过鼠标点击获取焦点了,所有不能缩放了,但如果是先点击network获取焦点后,再调用network.setFocusOnClick(false),则不会立即失效,只是当焦点不在network时,才会失效

那还有什么意义呢,点击一下滚动条已经动了


2022-05-24 13:27
Profile
TWaver开发组

Joined: 2022-04-28 17:53
Posts: 11
Post Re: 滚轮失效问题
您想实现什么效果呢


2022-05-25 10:05
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron