ScrollView

Is it possible to scroll only up? I’m using this sample script and it keeps scrolling only down. Please help…

-- Create a ScrollView local scrollView = widget.newScrollView { left = 0, top = 0, width = display.contentWidth, height = display.contentHeight, scrollWidth = width, scrollHeight = -2\*height, --bottomPadding = 50, --id = "onBottom", horizontalScrollDisabled = true, verticalScrollDisabled = false, hideBackground = true, listener = startDrag, }

i had the same problem. first, download widget 2.0

then after creating the widget.

In the parameters for the creation of the widget, skip horizontal and vertical scrolling.

Wait until you {} close brace all the parameters first, then alter the horizontal/vertical parameters outside of the braces.

Like such:

local scrollView = widget.newScrollView { left = 0, top = 0, width = display.contentWidth, height = display.contentHeight, scrollWidth = width, scrollHeight = -2\*height, --bottomPadding = 50, --id = "onBottom", hideBackground = true, listener = startDrag, }

scrollView._view._isHorizontalScrollingDisabled = true

@tomaz4

i had the same problem. first, download widget 2.0

then after creating the widget.

In the parameters for the creation of the widget, skip horizontal and vertical scrolling.

Wait until you {} close brace all the parameters first, then alter the horizontal/vertical parameters outside of the braces.

Like such:

local scrollView = widget.newScrollView { left = 0, top = 0, width = display.contentWidth, height = display.contentHeight, scrollWidth = width, scrollHeight = -2\*height, --bottomPadding = 50, --id = "onBottom", hideBackground = true, listener = startDrag, }

scrollView._view._isHorizontalScrollingDisabled = true

@tomaz4