make actionbar buttons unselectable

pull/38/head
otacke 2017-03-31 13:36:40 +02:00
parent 33406c69cc
commit bd83ddc5e7
2 changed files with 10 additions and 1 deletions

View File

@ -36,7 +36,7 @@ H5P.ActionBar = (function ($, EventDispatcher) {
self.trigger(type);
};
H5P.jQuery('<li/>', {
'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'),

View File

@ -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;