From bd83ddc5e7589638be518c58d86670b279f92627 Mon Sep 17 00:00:00 2001 From: otacke Date: Fri, 31 Mar 2017 13:36:40 +0200 Subject: [PATCH 1/2] make actionbar buttons unselectable --- js/h5p-action-bar.js | 2 +- styles/h5p.css | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/js/h5p-action-bar.js b/js/h5p-action-bar.js index 9a0f441..3af1a43 100644 --- a/js/h5p-action-bar.js +++ b/js/h5p-action-bar.js @@ -36,7 +36,7 @@ H5P.ActionBar = (function ($, EventDispatcher) { self.trigger(type); }; H5P.jQuery('
  • ', { - 'class': 'h5p-button h5p-' + (customClass ? customClass : type), + 'class': 'h5p-button h5p-noselect h5p-' + (customClass ? customClass : type), role: 'button', tabindex: 0, title: H5P.t(type + 'Description'), diff --git a/styles/h5p.css b/styles/h5p.css index b13c6e0..66d3521 100755 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -30,6 +30,15 @@ html.h5p-iframe, html.h5p-iframe > body { box-sizing: border-box; -moz-box-sizing: border-box; } +.h5p-noselect +{ + -khtml-user-select: none; + -ms-user-select: none; + -moz-user-select: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + user-select: none; +} html.h5p-iframe .h5p-content { font-size: 16px; line-height: 1.5em; From 8cb9e8b0d1c241121e37411972373220843220a8 Mon Sep 17 00:00:00 2001 From: otacke Date: Fri, 31 Mar 2017 13:57:11 +0200 Subject: [PATCH 2/2] remove non standard touch CSS --- styles/h5p.css | 1 - 1 file changed, 1 deletion(-) diff --git a/styles/h5p.css b/styles/h5p.css index 66d3521..9876d3a 100755 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -35,7 +35,6 @@ html.h5p-iframe, html.h5p-iframe > body { -khtml-user-select: none; -ms-user-select: none; -moz-user-select: none; - -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }