【BUG】movable-view的out-of-bounds=true 无效
发布于 6 年前 作者 yanxue 9428 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

 

    不能移动到movable-view外部!!!

  • 预期表现

    移动到movable-view外部!!!

  • 复现路径
  • 提供一个最简复现 Demo

<movable-area style=“height: 200px; width: 200px; background: darkgreen;”>

    <movable-view

    style=“height: {{height}}px; width: {{width}}px; background: red; top: {{top}}px; left: {{left}}px; transition: width .2s linear, height .2s linear, top .2s linear, left .2s linear;”

    x=“50”

    y=“50”

    direction=“all”

    out-of-bounds=“true”

    disabled="{{disabled}}"

    catch:longpress=“long”

    catch:touchend=“end”

    bindchange=“onChange”

    ></movable-view>

</movable-area>

1 回复

麻烦提供出现问题的机型和微信版本,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部