Commit 57355c88 authored by liujiangnan's avatar liujiangnan

debug

parent 0bc4dcd0
...@@ -104,7 +104,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -104,7 +104,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
const rect = this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].rect; const rect = this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].rect;
const checkInRegion = function (p) { const checkInRegion = (p) => {
this.showTips(`p===${p.x}||${p.y}====rect===${rect.x}||${rect.y}||${rect.width}||${rect.height}`);
const w = p.x > rect.x && p.x < (rect.x + rect.width); const w = p.x > rect.x && p.x < (rect.x + rect.width);
const h = p.y > rect.y && p.y < (rect.y + rect.height); const h = p.y > rect.y && p.y < (rect.y + rect.height);
return w && h; return w && h;
......
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