if (the mouseV >= (the top of sprite me.scrollBar + (member(the memberNum of sprite me.spriteNum).height / 2))) and (the mouseV <= (the bottom of sprite me.scrollBar - (member(the memberNum of sprite me.spriteNum).height / 2))) then
set the locV of sprite the target of me to v
set the locV of sprite the spriteNum of me to the mouseV
else
if the mouseV <= (the top of sprite me.scrollBar + (member(the memberNum of sprite me.spriteNum).height / 2)) then
set the locV of sprite the target of me to viewingTop + targetOffset
set the locV of sprite the spriteNum of me to t
else
if the mouseV >= (the bottom of sprite me.scrollBar - (member(the memberNum of sprite me.spriteNum).height / 2)) then
set the locV of sprite the target of me to viewingBottom - targetOffset