Minor updates to Doctests.

This commit is contained in:
2019-07-12 14:50:30 +02:00
parent e1b5c45b52
commit 0e8c62eb4b
4 changed files with 24 additions and 5 deletions
+3 -2
View File
@@ -90,7 +90,8 @@ elements under or nearby the event position and calls the click handler. Thus ge
can be disambiguated as moves, zooms. or taps.
Note that on touch devices you can tap beside the object if you use an object that implements the ITapDelegate interface.
An ITapDelegate allowes a distance that can be configured by allowClickDistance. The default value is 44px.
An ITapDelegate allowes a distance that can be configured by allowClickDistance. The default value is 44px but here we
use 88px.
</p>
<div id="contentExample" class="grayBorder interactive" style="position: relative; width: 100%; height: 280px;">
@@ -111,7 +112,7 @@ An ITapDelegate allowes a distance that can be configured by allowClickDistance.
let contentContainer = new DOMScatterContainer(contentExample)
let tapDelegate = new CardWrapper(interactiveContent)
let tapDelegate = new CardWrapper(interactiveContent, { allowClickDistance: 88})
new DOMScatter(interactiveContent, contentContainer, {
x: 44,
y: 44,