Weird brush behavior in texture painting mode with graphic tablet

I recently bought a graphic tablet and I try to make it work with Blender. Most of the time it works just fine, but there is this one weird behavior. When I do a rapid stroke in texture painting it makes exactly opposite thing than it should. When I make the stroke it should be hard at the START (when I press hard) and soften till the END (moment I lift the pen), but it makes it hard at the end. When I paint slowly it works fine, but I’m used to very fast painting. It seems like Blender makes stroke strength = 1 if I lift the pen too fast. Does anyone know what to do?