Mail Archives: geda-user/2011/10/01/18:56:52
On 10/01/2011 06:25 PM, Peter C.J. Clifton wrote:
>> Hey folks. Is there a way to remap mouse events in gschem? I am using
>> a gesture-capable trackpad (an Apple desktop trackpad under Linux) and
>> I'd like to use two-finger scrolling to pan the schematic sheet in X
>> and Y. It already works for X, but moving in the Y dimension performs
>> the zoom in/zoom out function that is standard (and wonderful) for
>> scroll wheels on mice. With the trackpad, though, I constantly find
>> myself wanting to pan in both axes with two fingers.
>>
>> If this is configurable in some way, can someone point me in the right
>> direction?
>
> Yes - I do this out of preference anyway - IMO, the mouse _scroll_
> wheels / touch areas should scroll the viewport, never zoom it.
>
> What I do is put in my ~/.gEDA/gschemrc:
>
> (scroll-wheel "gtk")
>
> as opposed to the default (scroll-wheel "classic")
>
> This makes zoom a Ctrl modified vertical scroll, and the unmodified
> scroll actions just move the viewport.
This works perfectly, thank you!
> You might even be able to set the gains to negateive of their normal
> numbers to enable a kind of "natural scrolling" feature - I believe that
> is common on Mac?
If that means "smooth scrolling" rather than "jumping in chunks", yes.
> Try (scrollpan-steps -8) if you want that, the code comments seem to
> suggest this is possible.
I tried that; I was expecting smaller steps to the scrolling, but it
didn't seem to have any effect. I'd dearly love a less "jumpy"
scrolling action. But frankly, having two-axis scrolling as above is a
huge deal in itself!
-Dave
--
Dave McGuire
Port Charlotte, FL
- Raw text -