From: James R. V. Z. <jr...@co...> - 2009-07-19 02:57:47
|
Ethan Merritt <merritt@u.washington.edu> writes: >On Friday 17 July 2009, James R. Van Zandt wrote: >> >> I've just checked in code to do "pan and zoom" with the mouse wheel. > >It works nicely here in x11, but doesn't do anything at all in wxt or >in the new canvas or qt terminals. I understand that extra javascript >would be needed for the canvas, but what is needed in order to support >this for other interactive terminal types? I only tested the x11 terminal, but I'm actually disappointed that changes to the core code don't affect all the mouse-capable terminals. It suggests there's something wrong with the way the code is factored. However, I have no idea how the other terminals handle the mouse. Does it work with the Windows terminal? >Wouldn't it be logical to apply this in 3D also? Good idea. >It does not immediately strike me as useful to save the settings on the >zoom stack. Unlike a click-and-drag zoom operation, the inverse is easy >to achieve by reversing the direction of the mouse wheel. True. As I wrote, it was easiest to implement it that way. Separating the zooming and stacking functions looked messy (I wasn't sure I followed all the logic) and I didn't convince myself that it was worth the trouble. - Jim |