From 1404c173f606f0a1d4a980918df896f0de00821c Mon Sep 17 00:00:00 2001
From: Taye Adeyemi <dev@taye.me>
Date: Fri, 1 Jun 2018 20:56:18 +0200
Subject: [PATCH] README: use modifiers array in example

---
 README.md | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 5e52da93a..fddc4e53a 100644
--- a/README.md
+++ b/README.md
@@ -46,11 +46,13 @@ var pixelSize = 16;
 interact('.rainbow-pixel-canvas')
   .origin('self')
   .draggable({
-    snap: {
-        targets: [ interact.createSnapGrid({
+    modifiers: [
+      interact.modifiers.snap({
+        targets: [ interact.snappers.grid({
           x: pixelSize, y: pixelSize
-        }) ]
-    },
+        }) ],
+      }),
+    ],
     // allow multiple drags on the same element
     maxPerElement: Infinity
   })