Skip to content

Commit 8f9f07a

Browse files
committed
#75 wip: xboxビルドテスト v48
1 parent ef9812a commit 8f9f07a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

templates/xbox/src/bindings/EventTarget.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ void DispatchEvent(v8::Isolate* isolate, v8::Local<v8::Object> target,
123123
if (lv.As<v8::Object>()->Get(ctx, Str(isolate, type.c_str())).ToLocal(&arrv) &&
124124
arrv->IsArray()) {
125125
auto arr = arrv.As<v8::Array>();
126+
// 診断: pointer イベントで実際に発火したリスナ数を一度だけ記録する。
127+
// 0 なら「リスナが配送先(main_canvas)に登録されていない」= 別要素に付いている。
128+
// 1+ なら「リスナは走っている」= 以降はヒットテスト座標の問題。
129+
if (type.rfind("pointer", 0) == 0) {
130+
static int ptr_log = 0;
131+
if (ptr_log < 6) {
132+
++ptr_log;
133+
v8util::AppendErrorLog("[Input] dispatch " + type
134+
+ " listeners=" + std::to_string(arr->Length()));
135+
}
136+
}
126137
for (uint32_t i = 0; i < arr->Length(); ++i) {
127138
v8::Local<v8::Value> fn;
128139
if (arr->Get(ctx, i).ToLocal(&fn) && fn->IsFunction()) {

0 commit comments

Comments
 (0)