Skip to content

Commit

Permalink
Substract 2 degree
Browse files Browse the repository at this point in the history
  • Loading branch information
rafi16jan committed Jun 24, 2024
1 parent 9373fd3 commit 88f989f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qibla.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
//compassCircle.style.transform = `translate(-50%, -50%) rotate(${-compass}deg)`;

if (pointDegree !== undefined) {
compassCircle.style.transform = `translate(-50%, -50%) rotate(${(Math.abs(pointDegree) - Math.abs(compass))}deg)`;
compassCircle.style.transform = `translate(-50%, -50%) rotate(${(Math.abs(pointDegree) - Math.abs(compass) - 2)}deg)`;
if (window.ReactNativeWebView) {
window.ReactNativeWebView.postMessage('done');
}
Expand Down

0 comments on commit 88f989f

Please sign in to comment.