Why mouse wheel is useless in tool

I create a webDialog ,and select a tool in the funtion attached by “add_action_callback”, and I find the mouse wheel is useless while tool is actived.

XXX.add_action_callback(“create_xml”)
{|dialog, arg|
Sketchup.active_model.select_tool(MyTool.new)
}

However, the mouse wheel is available if I use “Sketchup.active_model.select_tool(MyTool.new)” directly,whicht is not called in the function of webDialog add_action_callback.

how to make the mouse wheel available while tool is actived in the function of WebDialog add_action_callback.

It happens because the web dialog still has the input focus instead of the main modeling window.
This is a known issue.

Search this category for “focus” and you’ll find discussions … and perhaps hacky workarounds.

A search reveals …


These issues have been opened in the issue tracker …

1 Like