Update to iD v2.26.1

This commit is contained in:
Martin Raifer 2023-07-12 22:19:43 +02:00
parent 0a8dae77fb
commit 9aa646bd03
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD

View file

@ -22762,7 +22762,7 @@
// package.json // package.json
var package_default = { var package_default = {
name: "iD", name: "iD",
version: "2.26.0", version: "2.26.1",
description: "A friendly editor for OpenStreetMap", description: "A friendly editor for OpenStreetMap",
main: "dist/iD.min.js", main: "dist/iD.min.js",
repository: "github:openstreetmap/iD", repository: "github:openstreetmap/iD",
@ -25793,7 +25793,11 @@
return value2 === null || value2 === void 0 ? valueNull : typeof value2 === "function" ? valueFunction : valueConstant; return value2 === null || value2 === void 0 ? valueNull : typeof value2 === "function" ? valueFunction : valueConstant;
} }
function stickyCursor(func) { function stickyCursor(func) {
const supportedTypes = ["text", "search", "url", "tel", "password"];
return function() { return function() {
if (!supportedTypes.includes(this.type)) {
return;
}
const cursor = { start: this.selectionStart, end: this.selectionEnd }; const cursor = { start: this.selectionStart, end: this.selectionEnd };
func.apply(this, arguments); func.apply(this, arguments);
this.setSelectionRange(cursor.start, cursor.end); this.setSelectionRange(cursor.start, cursor.end);