We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08b5831 + 5d3facb commit 675ff18Copy full SHA for 675ff18
quick/framework/cc/ui/UIScrollView.lua
@@ -303,6 +303,24 @@ end
303
304
--[[--
305
306
+设置scrollview可触摸
307
+
308
+@param boolean bEnabled 是否开启触摸
309
310
+@return UIScrollView
311
312
+]]
313
+function UIScrollView:setTouchEnabled(bEnabled)
314
+ if not self.scrollNode then
315
+ return
316
+ end
317
+ self.scrollNode:setTouchEnabled(bEnabled)
318
319
+ return self
320
+end
321
322
+--[[--
323
324
将要显示的node加到scrollview中,scrollView只支持滚动一个node
325
326
@param node node 要显示的项
0 commit comments