Fixed screen size, added dark mode app menu icons, added haptics, added keyboard dismiss with swipe

This commit is contained in:
metacryst
2026-02-16 06:41:05 -06:00
parent 83a640433a
commit cc8b5035fe
19 changed files with 115 additions and 2305 deletions

View File

@@ -1,6 +1,7 @@
/*
Sam Russell
Captured Sun
2.16.26 - Adding event objects to the onTouch callbacks
1.16.26 - Moving nav event dispatch out of pushState, adding null feature to attr()
1.5.26 - Switching verticalAlign and horizontalAlign names, adding borderVertical and Horizontal
12.26.25 - State for arrays, nested objects. State for stacks (Shadow-only)
@@ -1066,9 +1067,9 @@ HTMLElement.prototype.onSubmit = function(cb) {
};
HTMLElement.prototype.onTouch = function(cb) {
const onStart = () => cb.call(this, true);
const onEnd = () => cb.call(this, false);
const onCancel = () => cb.call(this, null);
const onStart = (e) => cb.call(this, true, e);
const onEnd = (e) => cb.call(this, false, e);
const onCancel = (e) => cb.call(this, null, e);
this._storeListener("touchstart", onStart);
this._storeListener("touchend", onEnd);
this._storeListener("touchcancel", onCancel);