From c6a7e46c8d38aeac36adb18c0142d1944763e2c7 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 17 Jan 2023 08:32:39 -0800 Subject: [PATCH] Revert "Fix typo (#88)" This reverts commit c86caa24aaa396e1c0c6e2da62084761d7b69898. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 551bbce..f0f4d7c 100644 --- a/README.md +++ b/README.md @@ -84,10 +84,10 @@ Applies this drag behavior to the specified [*selection*](https://github.com/d3/ d3.selectAll(".node").call(d3.drag().on("start", started)); ``` -Internally, the drag behavior uses [*selection*.on](https://github.com/d3/d3-selection#selection_on) to bind the necessary event listeners for dragging. The listeners use the name `drag`, so you can subsequently unbind the drag behavior as follows: +Internally, the drag behavior uses [*selection*.on](https://github.com/d3/d3-selection#selection_on) to bind the necessary event listeners for dragging. The listeners use the name `.drag`, so you can subsequently unbind the drag behavior as follows: ```js -selection.on("drag", null); +selection.on(".drag", null); ``` Applying the drag behavior also sets the [-webkit-tap-highlight-color](https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html#//apple_ref/doc/uid/TP40006510-SW5) style to transparent, disabling the tap highlight on iOS. If you want a different tap highlight color, remove or re-apply this style after applying the drag behavior.