feat: add observeScrollingInterval in coordinator plugin
This commit is contained in:
@@ -4597,7 +4597,17 @@ function coordinator(context) {
|
||||
context.callNative("coordinator", "verticalScrolling", argument);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
observeScrollingInterval: function (argument) {
|
||||
if (context.entity instanceof Panel) {
|
||||
var panel = context.entity;
|
||||
panel.addOnRenderFinishedCallback(function () {
|
||||
argument.scrollable = viewIdChains(argument.scrollable);
|
||||
argument.onScrolledInterval = context.function2Id(argument.onScrolledInterval);
|
||||
context.callNative("coordinator", "observeScrollingInterval", argument);
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -3563,7 +3563,17 @@ function coordinator(context) {
|
||||
context.callNative("coordinator", "verticalScrolling", argument);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
observeScrollingInterval: (argument) => {
|
||||
if (context.entity instanceof Panel) {
|
||||
const panel = context.entity;
|
||||
panel.addOnRenderFinishedCallback(() => {
|
||||
argument.scrollable = viewIdChains(argument.scrollable);
|
||||
argument.onScrolledInterval = context.function2Id(argument.onScrolledInterval);
|
||||
context.callNative("coordinator", "observeScrollingInterval", argument);
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -5103,7 +5103,17 @@ function coordinator(context) {
|
||||
context.callNative("coordinator", "verticalScrolling", argument);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
observeScrollingInterval: (argument) => {
|
||||
if (context.entity instanceof Panel) {
|
||||
const panel = context.entity;
|
||||
panel.addOnRenderFinishedCallback(() => {
|
||||
argument.scrollable = viewIdChains(argument.scrollable);
|
||||
argument.onScrolledInterval = context.function2Id(argument.onScrolledInterval);
|
||||
context.callNative("coordinator", "observeScrollingInterval", argument);
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user