Skip to content

Commit

Permalink
[CodeHealth] Misc cleanup in PointerEvent wpts (#48983)
Browse files Browse the repository at this point in the history
This is a no-op change to remove a few unused methods/features.

Change-Id: I5406533f119c052bfe63f7fffdd17e9d828b7964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5989014
Commit-Queue: Mustaq Ahmed <[email protected]>
Reviewed-by: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1378549}

Co-authored-by: Mustaq Ahmed <[email protected]>
  • Loading branch information
chromium-wpt-export-bot and mustaqahmed authored Nov 6, 2024
1 parent 92228c4 commit eb02ec4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion pointerevents/pointerevent_after_target_removed.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

function removeChild() {
parent.removeChild(child);
child.remove();
event_log.push("(child-removed)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
if (event.target == node) {
events.push({type: event.type, target: event.target});
}
}, {capture: true});
});
}
}
div3.addEventListener("click", event => {
Expand Down
21 changes: 0 additions & 21 deletions pointerevents/pointerevent_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,27 +170,6 @@ function updateDescriptionComplete() {
document.getElementById('desc').innerHTML = "Test Description: Test complete";
}

function updateDescriptionSecondStepTouchActionElement(target, scrollReturnInterval) {
window.step_timeout(function() {
objectScroller(target, 'up', 0);}
, scrollReturnInterval);
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT moving your outside of the red border";
}

function updateDescriptionThirdStepTouchActionElement(target, scrollReturnInterval, callback = null) {
window.step_timeout(function() {
objectScroller(target, 'left', 0);
if (callback) {
callback();
}
}, scrollReturnInterval);
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element DOWN then RIGHT starting your touch inside of the element. Then tap complete button";
}

function updateDescriptionFourthStepTouchActionElement(target, scrollReturnInterval) {
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT starting your touch inside of the element";
}

function objectScroller(target, direction, value) {
if (direction == 'up') {
target.scrollTop = 0;
Expand Down

0 comments on commit eb02ec4

Please sign in to comment.