I am working on a QR Code scanner. As soon as the QR Code is scanned, I can print the information on the screen with an alert. But what I want is to print the information in the code on a new page as soon as it is scanned in the camera. Actions to be taken when opening the camera
Javscript – Three.js Disable panning on mobile devices?
So I’m making a 3d project with three.js. Everything works as expected on my laptop. I’m using OrbitControls to allow camera movement, but i have disabled right click panning, because I want the camera just to rotate. When switching to a mobile device (iphone), using two fingers I’m able to move the camera (not rotate). Is there a way to
p5.js: Drawing tool doesn’t work well on mobile devices
For a project, I would like to work with this code: I realized that it doesn’t work well on mobile devices. Sometimes nothing draws, sometimes I get some colored dots. It should possible to draw “normally” with the finger. Is there a way to fix that? Would be very thankful for help! <3 Answer This won’t work as a runnable
How to display text sequentially using P5.js deviceMoved() function?
I am currently trying to make a program where the text changes as the phone moves every couple value(s) using the P5.JS deviceMoved() function. (the gif below displays how i wanted the text to change eventually as the device moved) As seen on the code below, I’ve put all the text in the array and I wanted to change the
Openlayers map implemented in react does not work on mobile
I have an implementation of the OpenLayers map in react which looks like this: The map works very well on the pc browser, the map can be dragged, zoomed-in / zoomed out without any problems. The markers are displayed properly and so on. The issue is that it is not responding to any touch event on mobile. So it cannot
Passing arguments into props react-native?
I’m new to react and am trying to figure out how things like props work. I want to have it so I can pass a function which i know how to do but i want to do it with some argument. I know my switch statement works because if I manually set the value it works as expected. I’m just
How to make work my mobile menu bar ‘display : none’ ‘display : block’
I’ve a navigation menu which dissappears when the breakpoint is 640px and an icon appears. When I click on this icon my menu reopens and it doesn’t close and when I resize the browser it doesn’t back to the normal style. For sure sth doesn’t work in my if satements. Thanks for your help! Answer Try changing the else if
Bootstrap 4 navbar collapse does not work [doesn’t stay open]
I am trying to implement a Navbar using Bootstrap 4. Currently, the Navbar correctly collapses when the viewport is shrunk to mobile size. However, when attempting to open the menu, it does open and then closes rapidly. Here www.vitaminak.com.br and here just with the code bellow: http://www.vitaminak.com.br/nav/ you can check that it demonstrates this behavior. I have attached the HTML
How do I fix a div scroll to make it more smooth?
So I started off with having a problem on mobile phones where I had a div over the main page and whenever I scrolled on that div I would also be scrolling the whole page. I found a fix for this problem from this post as follows: This fixed the problem for me but also created another problem. This fix
Location.reload() on mobile JS app