Same problem here with Mac OS!!
You can not scroll with the trackpad if you are inside the scroll area with mouse cursor!
It seems the scrolling is disabled with a canvas gadget. With an image gadget it works as expected!
Trackpad scrolling don't work (canvas gadget):
Code: Select all
OpenWindow(0,0,0,800,600,"Test ScrollArea")
NewImage = CreateImage(#PB_Any,1000,1000,24,RGB(255,255,255))
StartDrawing(ImageOutput(NewImage))
Circle(200,200,300,RGB(255,0,0))
StopDrawing()
SC = ScrollAreaGadget(#PB_Any,50,50,700,500,1000,1000)
GraphicSchedule = CanvasGadget(#PB_Any,0,0,1000,1000)
CloseGadgetList()
SetGadgetAttribute(GraphicSchedule, #PB_Canvas_Image, ImageID(NewImage))
Repeat:Until WaitWindowEvent() = #PB_Event_CloseWindow
Trackpad scrolling works (image gadget):
Code: Select all
OpenWindow(0,0,0,800,600,"Test ScrollArea")
NewImage = CreateImage(#PB_Any,1000,1000,24,RGB(255,255,255))
StartDrawing(ImageOutput(NewImage))
Circle(200,200,300,RGB(255,0,0))
StopDrawing()
SC = ScrollAreaGadget(#PB_Any,50,50,700,500,1000,1000)
GraphicSchedule = ImageGadget(#PB_Any,0,0,1000,1000, ImageID(NewImage))
CloseGadgetList()
Repeat:Until WaitWindowEvent() = #PB_Event_CloseWindow