two-fingered scrolling on mac

J. Landman Gay jacque at hyperactivesw.com
Tue Nov 4 13:50:47 EST 2014


On 11/4/2014, 11:14 AM, Dr. Hawkins wrote:
> I've noticed that I can use the normal mac two-fingered scrolling in (at
> least) the dictionary.
>
> Is there a way to enable this for my own fields & groups?
>

I think it's the same keycodes as the scrollwheel on a mouse:

on rawKeyDown pKey
    switch pKey
       case 65309
          set the vScroll of me to the vScroll of me - 30
          break
       case 65308
          set the vScroll of me to the vScroll of me + 30
          break
       case 65311
          set the hScroll of me to the hScroll of me - 30
          break
       case 65310
          set the hScroll of me to the hScroll of me +30
          break
       default
          pass rawKeyDown
    end switch
end rawKeyDown

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list