From 16cb9904c2b93f3cd0e8fbfc39479da84a6abfa1 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Tue, 23 Nov 2021 16:03:29 +0000 Subject: [PATCH] Updating changelog --- CHANGELOG.md | 1 + src/render/dom/utils/filter-props.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdc87d583..019b353ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Framer Motion adheres to [Semantic Versioning](http://semver.org/). - Fixing animating to CSS variables with `SVGElement`. [Issue](https://github.com/framer/motion/issues/1334) - Unsetting `z-index` for resting `Reorder.Item` components. [Issue](https://github.com/framer/motion/issues/1313) +- Forward native drag listeners to `draggable` elements. [Issue](https://github.com/framer/motion/issues/1248) ## [5.3.2] 2021-11-23 diff --git a/src/render/dom/utils/filter-props.ts b/src/render/dom/utils/filter-props.ts index 26158f325..06184575c 100644 --- a/src/render/dom/utils/filter-props.ts +++ b/src/render/dom/utils/filter-props.ts @@ -43,6 +43,7 @@ export function filterProps( shouldForward(key) || (forwardMotionProps === true && isValidMotionProp(key)) || (!isDom && !isValidMotionProp(key)) || + // If trying to use native HTML drag events, forward drag listeners (props["draggable"] && key.startsWith("onDrag")) ) { filteredProps[key] = props[key]