Commit b2fc16cf authored by Tt's avatar Tt

修改窄屏效果

parent 6471b288
This diff is collapsed.
...@@ -251,7 +251,8 @@ cc.Class({ ...@@ -251,7 +251,8 @@ cc.Class({
return; return;
} }
const rectOption = optionNode.getBoundingBox(); const rectOption = optionNode.getBoundingBox();
if (!cc.Intersection.rectRect(box, rectOption)) { const tartRect = cc.rect(0, 0, box.width, box.height)
if (!cc.Intersection.rectRect(tartRect, rectOption)) {
cc.tween(optionNode) cc.tween(optionNode)
.to(0.05, { .to(0.05, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment