You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if I use the PointerSensor with activationConstraint, I am getting an error logged in the console for not using tolerance. But here is the issue. I am using my activationConstraint like this:
if (
activationConstraint.tolerance != null &&
hasExceededDistance(delta, activationConstraint.tolerance)
) {
Although the code is using loose equality (!=), and null and undefined are technically equal (loosely), it still seems to run hasExceededDistance. Not really sure what the problem could be exactly.
The text was updated successfully, but these errors were encountered:
Currently, if I use the
PointerSensor
withactivationConstraint
, I am getting an error logged in the console for not usingtolerance
. But here is the issue. I am using myactivationConstraint
like this:According to the types, this is valid:
But when I run this and actually drag something, I get the following error:
The issue seems to lie here: https://github.com/clauderic/dnd-kit/blob/master/packages/core/src/sensors/pointer/AbstractPointerSensor.ts#L201-L204
Although the code is using loose equality (
!=
), andnull
andundefined
are technically equal (loosely), it still seems to runhasExceededDistance
. Not really sure what the problem could be exactly.The text was updated successfully, but these errors were encountered: