Skip to content

Commit 66081c7

Browse files
committed
add link to the working drag example
1 parent a521d86 commit 66081c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Browser/Events.elm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ onClick =
144144
on Document "click"
145145

146146

147-
{-| Subscribe to mouse moves anywhere on screen. You could use this to implement
148-
drag and drop.
147+
{-| Subscribe to mouse moves anywhere on screen.
148+
149+
You could use this to implement resizable panels like in Elm's online code
150+
editor. Check out the example imprementation [here][drag].
151+
152+
[drag]: https://github.com/elm/browser/blob/1.0.2/examples/src/Drag.elm
149153
150154
**Note:** Unsubscribe if you do not need these events! Running code on every
151155
single mouse movement can be very costly, and it is recommended to only

0 commit comments

Comments
 (0)