I helped him with this message:
mousePositionChange = newMousePosition.substract(initialMousePosition); // or substract the other way around camera.scroll = initialCameraScroll.add(mousePositionChange); //or substract // I'm bad at vector mathNote:
newMousePosition, initialMousePosition, initialCameraScroll are FlxPoints
initialMousePosition and initialCameraScroll is set when the mouse is pressed
It's pseudo-code. For the second line to work, you're gonna need to use FlxPoint.copyFrom():
camera.scroll.copyFrom(initialCameraScroll.add(mousePositionChange)); //or substractAnd this is what he'd got:
Here's the class he used for the above gif: Pastebin