Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Remove event from scrollview
Started by andavidosp Sep 22 2018 07:38 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

andavidosp

[GLOBAL: userInfoPane.html]
andavidosp
  • Observer

  • 19 posts
  • Corona SDK

Hi, 

 

Can someone tell me how can i remove the event listener "scrollListener" from the scrollview widget?

scrollView = widget.newScrollView
	{
	    top = 0,
	    left = 0,
	    width = display.viewableContentWidth,
	    height = 1024,
	    scrollWidth = 960,
	    scrollHeight = 400,
	    backgroundColor = {0,255,255,0},
	    verticalScrollDisabled = true,
	    isBounceEnabled = false,
	    listener = scrollListener
	}


[TOPIC: post.html]
#2

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 2,985 posts
  • Corona SDK

Just set a boolean and don't do anything when it is called. I don't think there is a way to remove it once you've created the scrollview.




[topic_controls]
[/topic_controls]