After going through PR checklist for PR #1112 , realized D-pad was not being restricted properly. I had to adjust one line of the code in move function because I did not call the viewportBoundsMoveDrag function and instead just had an if statement that said if ((graphZoom, moveWidth, moveHeight)). Updated code to if (viewportBoundsMoveDrag(graphZoom, moveWidth, moveHeight)) and now D-pad is being restricted as expected.
After going through PR checklist for PR #1112 , realized D-pad was not being restricted properly. I had to adjust one line of the code in
move
function because I did not call the viewportBoundsMoveDrag function and instead just had an if statement that saidif ((graphZoom, moveWidth, moveHeight))
. Updated code toif (viewportBoundsMoveDrag(graphZoom, moveWidth, moveHeight))
and now D-pad is being restricted as expected.