mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
d06168d94a
After a tap, WebKit and Chrome keep :hover on what was tapped and send a
made-up mouseover, so buttons and rows stayed tinted until the next tap.
While a finger drives the app <html> carries data-touch-input: a PostCSS
step guards every :hover rule with it (no specificity change), and the
made-up mouseover and mouseout stop before any handler. A trackpad or mouse
clears the mark and gets hover back; a browser never sets it.
A control without a press of its own dims the moment a finger lands on it,
after a 60 ms wait so a scroll does not flash rows, and only the innermost
pressed control. A focus: ring no longer stays round a tapped button.
Fields get a fitting return key ("done", "go" in a form, "search" on the
search fields), and addresses, codes and numbers are no longer capitalised
or corrected. Ticking off packing items and tasks, a picker chip, a select
option, a picked date and dragging a plan row now give the haptics a native
list gives.
Confirmations ask through the system where the binary has the new
@capacitor/action-sheet and @capacitor/dialog plugins: a sheet with the
action in red when it destroys something, an alert otherwise, also for
"discard changes" in a sheet. An older app, a browser and a question with a
list under it keep the HTML dialog, as does a system that could not ask.
iOS no longer lifts a page preview on a long press on a link.
44 lines
2.3 KiB
Swift
44 lines
2.3 KiB
Swift
// swift-tools-version: 5.9
|
|
import PackageDescription
|
|
|
|
// DO NOT MODIFY THIS FILE - managed by Capacitor CLI commands
|
|
let package = Package(
|
|
name: "CapApp-SPM",
|
|
platforms: [.iOS(.v15)],
|
|
products: [
|
|
.library(
|
|
name: "CapApp-SPM",
|
|
targets: ["CapApp-SPM"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.5.2"),
|
|
.package(name: "CapacitorActionSheet", path: "../../../../node_modules/@capacitor/action-sheet"),
|
|
.package(name: "CapacitorApp", path: "../../../../node_modules/@capacitor/app"),
|
|
.package(name: "CapacitorDialog", path: "../../../../node_modules/@capacitor/dialog"),
|
|
.package(name: "CapacitorFilesystem", path: "../../../../node_modules/@capacitor/filesystem"),
|
|
.package(name: "CapacitorHaptics", path: "../../../../node_modules/@capacitor/haptics"),
|
|
.package(name: "CapacitorKeyboard", path: "../../../../node_modules/@capacitor/keyboard"),
|
|
.package(name: "CapacitorShare", path: "../../../../node_modules/@capacitor/share"),
|
|
.package(name: "CapacitorSplashScreen", path: "../../../../node_modules/@capacitor/splash-screen"),
|
|
.package(name: "CapacitorStatusBar", path: "../../../../node_modules/@capacitor/status-bar")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "CapApp-SPM",
|
|
dependencies: [
|
|
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
.product(name: "CapacitorActionSheet", package: "CapacitorActionSheet"),
|
|
.product(name: "CapacitorApp", package: "CapacitorApp"),
|
|
.product(name: "CapacitorDialog", package: "CapacitorDialog"),
|
|
.product(name: "CapacitorFilesystem", package: "CapacitorFilesystem"),
|
|
.product(name: "CapacitorHaptics", package: "CapacitorHaptics"),
|
|
.product(name: "CapacitorKeyboard", package: "CapacitorKeyboard"),
|
|
.product(name: "CapacitorShare", package: "CapacitorShare"),
|
|
.product(name: "CapacitorSplashScreen", package: "CapacitorSplashScreen"),
|
|
.product(name: "CapacitorStatusBar", package: "CapacitorStatusBar")
|
|
]
|
|
)
|
|
]
|
|
)
|