I use this script to scroll a group with the mousewheel.
It works perfectly on OSX but not on Windows.
What I forget ?
Code: Select all
on rawkeydown pRawKey
put "grPresentation" into sCurScroll
put "65309,65308" into tLesK
if pRawKey = 65309 or pRawKey = 65308 then
put 72 into tEmpan
if sCurScroll <> empty then
if the mouseloc is within the rect of group sCurScroll then
if pRawKey = 65308 then
put tEmpan into tSec
end if
if pRawKey = 65309 then
put (0-tEmpan) into tSec
end if
set the vscroll of group sCurScroll to (the vscroll of group sCurScroll) + tSec
end if
end if
else
pass rawkeydown
end if
end rawkeydown
Jean-Marc