aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/pointer_events
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/api/pointer_events')
-rw-r--r--files/ru/web/api/pointer_events/index.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/files/ru/web/api/pointer_events/index.html b/files/ru/web/api/pointer_events/index.html
index 1d74bcf4aa..c6a57b7a95 100644
--- a/files/ru/web/api/pointer_events/index.html
+++ b/files/ru/web/api/pointer_events/index.html
@@ -160,7 +160,7 @@ translation_of: Web/API/Pointer_events
<p>В этом примере определённому элементу назначаются обработчики каждого типа события.</p>
-<pre class="brush: html notranslate">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
  &lt;script&gt;
    function over_handler(event) { }
    function enter_handler(event) { }
@@ -198,7 +198,7 @@ translation_of: Web/API/Pointer_events
<p>Этот пример демонстрирует доступ ко всем свойствам события касания.</p>
-<pre class="brush: html notranslate">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;script&gt;
var id = -1;
@@ -345,7 +345,7 @@ translation_of: Web/API/Pointer_events
<p>The following example shows pointer capture being set on an element.</p>
-<pre class="brush: html notranslate">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;script&gt;
function downHandler(ev) {
let el = document.getElementById("target");
@@ -366,7 +366,7 @@ translation_of: Web/API/Pointer_events
<p>The following example shows a pointer capture being released (when a {{event("pointercancel")}} event occurs. The browser does this automatically when a {{event("pointerup")}} or {{event("pointercancel")}} event occurs.</p>
-<pre class="brush: html notranslate">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;script&gt;
function downHandler(ev) {
let el = document.getElementById("target");
@@ -401,7 +401,7 @@ translation_of: Web/API/Pointer_events
<p>In the following example, the browser's default touch behavior is disabled for the <code>div</code> element.</p>
-<pre class="brush: html notranslate">&lt;html&gt;
+<pre class="brush: html">&lt;html&gt;
&lt;body&gt;
&lt;div style="touch-action:none;"&gt;Can't touch this ... &lt;/div&gt;
&lt;/body&gt;
@@ -410,14 +410,14 @@ translation_of: Web/API/Pointer_events
<p>In the following example, default touch behavior is disabled for some <code>button</code> elements.</p>
-<pre class="brush: css notranslate">button#tiny {
+<pre class="brush: css">button#tiny {
touch-action: none;
}
</pre>
<p>In the following example, when the <code>target</code> element is touched, it will only pan in the horizontal direction.</p>
-<pre class="brush: css notranslate">#target {
+<pre class="brush: css">#target {
touch-action: pan-x;
}
</pre>