2016-04-24 56 views
0

我在LiveCode桌面和移动应用程序中使用mergDataGridScroller,它工作正常。 但是在移动设备上,当我在卡的顶部显示一个组(在mergDataGridScroller的顶部并且与其无关)以向用户提供其他选择时,mergDataGridScroller仍会对鼠标/触摸移动作出反应。 有没有办法暂时禁用mergDataGridScroller? 感谢MergExt mergDataGridScroller如何临时禁用滚动

回答

0

你有两个选择:

  • 隐藏mergDataGridScroller包装组也将隐藏你的数据网格,然后dispatch "updateVisible" to group <your mergDataGridScroller group name>

  • 编辑行为脚本添加一个命令是这样的:

    command toggleScroller pVisible 
        if the environment is "mobile" then 
        mobileControlSet sScrollerId, "visible", pVisible 
        end if 
    end toggleScroller 
    
+0

第二个选项工作很好,因为它不会隐藏卷轴后面。 –