Skip to content

Commit

Permalink
TEST: without scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Aug 19, 2024
1 parent 9058f40 commit 75cf1e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/common/test-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ window.ph_find = function(sel) {

window.ph_find_scroll_into_view = function(sel) {
const el = window.ph_find(sel);
return el;
/*
return new Promise(resolve => {
el.scrollIntoView({ behaviour: 'instant', block: 'center', inline: 'center' });
// scrolling needs a little bit of time to stabilize, and it's not predictable
// in particular, 'scrollend' is not reliably emitted
window.setTimeout(() => resolve(el), 200);
});
*/
};

window.ph_count = function(sel) {
Expand Down

0 comments on commit 75cf1e9

Please sign in to comment.