Fixed an error in slider angle calculation

Slider's angle wasn't calculated correctly when the user was dragging
the slider with a finger. GPL v2 license file added.