From b804d57d2488d069c7377a9ab7d1bb39cd6d6016 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 7 Aug 2021 21:06:24 +0200 Subject: [PATCH 1/2] Disable text selection and image dragging for better touchscreen support --- static/css/matemat.css | 9 +++++++++ templates/productlist.html | 2 +- templates/userlist.html | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/static/css/matemat.css b/static/css/matemat.css index 9504e18..774ef32 100644 --- a/static/css/matemat.css +++ b/static/css/matemat.css @@ -1,3 +1,12 @@ +* { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + .thumblist-item { display: inline-block; margin: 5px; diff --git a/templates/productlist.html b/templates/productlist.html index 824307e..b1d2eca 100644 --- a/templates/productlist.html +++ b/templates/productlist.html @@ -59,7 +59,7 @@
{% endif %}
- Picture of {{ product.name }} + Picture of {{ product.name }} {% set pstock = stock.get_stock(product) %} {% if pstock is not none %} {{ pstock }} diff --git a/templates/userlist.html b/templates/userlist.html index 4c73611..16c271a 100644 --- a/templates/userlist.html +++ b/templates/userlist.html @@ -14,7 +14,7 @@ {{ user.name }}
- Avatar of {{ user.name }} + Avatar of {{ user.name }}
From a73bc97fd5350824dc3b356c459d39a362ab7960 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 7 Aug 2021 21:08:17 +0200 Subject: [PATCH 2/2] Bump version number to 0.2.9 --- CHANGELOG.md | 13 +++++++++++++ matemat/__init__.py | 2 +- package/debian/matemat/DEBIAN/control | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93cad0b..6a93d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Matemat Changelog + +## Version 0.2.9 + +Enhancement + +### Changes + + +- Enhancement: Disable text selection and prevent image dragging for better touchscreen support + + + + ## Version 0.2.8 diff --git a/matemat/__init__.py b/matemat/__init__.py index 2a6353a..f63c866 100644 --- a/matemat/__init__.py +++ b/matemat/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.2.8' +__version__ = '0.2.9' diff --git a/package/debian/matemat/DEBIAN/control b/package/debian/matemat/DEBIAN/control index f3d1373..1758e15 100644 --- a/package/debian/matemat/DEBIAN/control +++ b/package/debian/matemat/DEBIAN/control @@ -1,5 +1,5 @@ Package: matemat -Version: 0.2.8 +Version: 0.2.9 Maintainer: s3lph Section: web Priority: optional