Lisp HUG Maillist Archive

Capturing scroll gestures

Hi, 

I have an opengl interface built on CAPI.  I’m wondering if it’s possible to capture arbitrary scroll gestures, such as a mouse wheel or two finger trackpad type scrolling.  I would use this to scroll certain parts of my opengl interface.  I’ve seen the section 7.4 of the CAPI guide on scrolling, and I’m wondering if it’s necessary to have a pane with a scrollbar to catch these (and indeed perhaps it’s an operating system level thing).

If that’s the case I was wondering if maybe I could catch them from the pane that holds the opengl canvas, and maybe just hide the scollbar(s) as a hack or something.  Any ideas or suggestions appreciated! 

Thanks,
Steve

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Capturing scroll gestures

Have you tried using :horizontal-scroll :without-bar when initializing the interface?

Erik


> 15 sep. 2020 kl. 15:26 skrev Steven Githens <steve@githens.org>:
> 
> Hi, 
> 
> I have an opengl interface built on CAPI.  I’m wondering if it’s possible to capture arbitrary scroll gestures, such as a mouse wheel or two finger trackpad type scrolling.  I would use this to scroll certain parts of my opengl interface.  I’ve seen the section 7.4 of the CAPI guide on scrolling, and I’m wondering if it’s necessary to have a pane with a scrollbar to catch these (and indeed perhaps it’s an operating system level thing).
> 
> If that’s the case I was wondering if maybe I could catch them from the pane that holds the opengl canvas, and maybe just hide the scollbar(s) as a hack or something.  Any ideas or suggestions appreciated! 
> 
> Thanks,
> Steve
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Updated at: 2020-12-10 08:28 UTC