Minor updates to Doctests.
This commit is contained in:
+3
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user