Middle mouse button.
-
I am writing a tool that needs the middle mouse button but I am having trouble getting it to work.
The left mouse buttons all seem to work fine but onMButtonDown and onMButtonDoubleClick are never called and onMButtonUp is only called after a double click.
Has anyone got this to work. Is this a known bug?
Chris
-
Same problem here: Has anyone got this to work ? Or is this a known bug?
The code below shows correctly "L" and "R" in the "Ruby Console" but never shows "M". Instead "M" it triggers the "Orbit tool".Thank you.
require 'sketchup.rb'
class Test1
def onMButtonDown(flags, x, y, view)
puts "M"
end
def onLButtonDown(flags, x, y, view)
puts "L"
end
def onRButtonDown(flags, x, y, view)
puts "R"
end
enddef call1
Sketchup.active_model.select_tool Test1.new
end -
Hi Chris,
This is a known issue to our team and should be addressed in a future maintenance release. I'm not aware of any workaround, unfortunately.
-
@unknownuser said:
Hi Chris,
This is a known issue to our team and should be addressed in a future maintenance release. I'm not aware of any workaround, unfortunately.
Sorry for hijacking the thread but I find this post rather discouraging.
Not a: In the next release.
Just a distant future service release.
I guess SU7 is further into the future than we all hope.I can't understand why Google gives us nothing.
Just some brief overview of approx what and when to make us not lose all hope.
Google, we're starving!
I guess I'm not the only one to look into alternative softwares just because we dont get ANY info on when and what will be fixed in SU7.
End of hijack. -
Hey Jan,
I really wish I could be more clear, but we're talking about timelines that aren't set in stone. I'd rather be vague than be disappointing!
I understand your frustration. Let me restate my post to be: this bug has been fixed and will be available in our next release.
-
Thanks Scott for you answer. What we really miss here in the Ruby section is a professional feedback from SU Team regarding bugs and missing Ruby features, for example:
- ray casting bug - ray stops on hidden entities or entities on a hidden layers
- selection bug displaying also a geometry of a definition
- only first attribute restored when saved with SKM material
and few more...
I understand that not all have to be answered. I am just glad to see you here.
Tomasz -
We can add this one (although I may have found a fix)
Web Dialog on Mac asynchronous .Fredo
-
Hi, I have the same problem in 2017...Is this going to be fixed?
Here is the test I did...
class TestMiddleButton #Not Working... def onMButtonDown(flags, x, y, view) puts "onMButtonDown; flags = #{flags}" puts " x = #{x}" puts " y = #{y}" puts " view = #{view}" end #This one is working.... def resume(view) puts "resume; view = #{view}" end end Sketchup.active_model.select_tool TestMiddleButton.new
Advertisement