Reset zoom and scrolling to their default positions - responsive-design

I have Samsung Galaxy S5.
And Android version 6.0.1.
Started to study responsive web development. Namely focusing on images now.
I have created a simplest html that contains only an image. Then forwarded the port and organize a web server (python -m http.server 8000 --bind 127.0.0.1).
So, now I can load my html page to my mobile device.
I have loaded it. It displayed somehow. Then I start playing with it: zoom, scrolling, double tap.
And at some point I would like to see how the original loaded picture looks like.
Reloading will not help: zoom and scrolling position remain the same. Clearing browsing data does not help.
On desktop/laptop computers there is Ctrl + 0 combination. On mobile device there is a double tap. But it switches between two zoom levels. I suppose, one of them is the default. But which one of them?
On Android there seems to be an option to switch off magnification gestures:
https://support.google.com/accessibility/android/answer/6006949?hl=en
But on my device I can't find it. Maybe there is no more such option. Though strange.
Anyway, the problem is how to reset zoom and scrolling to their default positions? Any method, but the simpler the better.

Related

responsive design - disable jquery effects for touch screens

I have some jquery mouseover effects on my website that I need to disable for touch screens, however, how do I know what width of screen to disable the JQuery? At the moment I have it at less than 800px. This works on an ipad portrait but then when I turn it landscape the JQuery is activated again. I have read that Ipad landscape width is 1024px but this could also be the size of a small none touch screen. Is there a way I can specify effects for certain devices instead of screen widths ?
To achieve this you should look at working the other way and instead of disabling mouse over events for touch devices ADD the events for non-touch devices.
Add Modernizr to the project your working on (you've probably already got it in there). Once added you can include a test for "touch" by adding it as a class to the HTML element
<html class="touch">
If the device has touch capabilities then everything will remain as is, however if the device does not have touch then moderizr will covert that from touch to to no-touch
<html class="no-touch">
You can then bind your mouse events off the html element having the class of .no-touch
I've put an example of this in the code pen - http://rwd.is/VyRl37
This assumes that you're still loading the jQuery library for all devices and deciding whether to load the mouse over functions based on touch devices. If you're looking at conditionally loading jQuery itself then you should look at enquire.js to load in jQuery at a specified width.
If you want to keep jQuery for other functions on smaller devices but want to improve performance you could look at using using Zepto.js as a lightweight alternative.
Finally Response.js will also allow you to call functions at particular breakpoints but you still run into the issue of not knowing if it's touch enabled or not.

Relocalizing Overlay not working

I have a created a very basic area learning app. It was working fine.
But suddenly the Relocalizing Overlay script is not working properly.
Steps to generate the issue.
Learn a area, save it.
open the same area but someplace else so that device does not recognize the surrounding.
Relocalizing overlay script does not enable the "walk around to relocalize" relocalize_screen.png. as we are not in the area that it had remembered
Cover the sensor and camera with your hand - relocalize_screen.png activates.
Remove the hand - relocalize_screen.png still there.
Now go to the area which we had remembered in step 1. And screen activates i.e Relocalizing Overlay script disable relocalize_screen.png
Link Followed - https://developers.google.com/tango/apis/unity/unity-howto-area-learning
What I observed is that after covering the sensors Relocalizing Overlay script started behaving the way it is supposed to behave.

how to test responsive design in all screen resolutions? [closed]

I need to test a responsive website based on all screen resolution, as you know for example we can drag FireFox or Chrome browser size by mouse and resize page but I believe this is not correct way.
but please share your idea about it
.
There are also some websites that they provide same facility by checking website in all devices screen, but it's not trustworthy.
I need to know what is the best way and routine way to check
responsive website for all screen devices?
In the developer tool of mozilla firefox, in the top right portion click on the square icon to enable mobile mode.
read for more here, https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode
I've recently tried using browsersync and it works quite well.
BrowserSync essentially allows you to test your site across a network of devices, and what you do on one device is immediately visible on the others. Your scroll, click, refresh and form actions are mirrored between browsers while you test.
Here's the link: https://www.browsersync.io/

Xamarin.Forms.Maps does not load

Working with maps on my xamarin forms project and when i start the simulator i get the map when it is zoomed out, but when i click a button (that moves the map closer, zooms it in) the map doesnt load, it remains gray. The simulator I am using is iPhone 6s. If I however use the iPad Air simulator, it works just fine and the map loads when it gets more zoomed in.
When I deploy the app on my phone it remains gray as well. If I zoom out again, then it loads, but if i go futher in into the map then it turns gray again.
I use Location always in usage + when in usage and the standard iOS map.
I use version 2.1.0.6529 on both Xamarin.Forms.Maps as well as Xamarin.Forms in my mainfolder and the iOS folder. (Latest version)
I have "Xamarin.FormsMaps.Init();" in my appdelegate.cs file as well as some other code (push notifications), might that interfere somehow?
I am very confused what the issue might be.

Screen touch simulation on Android

I'd like to create a simple application for Android that would automate some processes that happen in different applications that I don't have under my control at all. Is there any way to get pixel color and simulate screen touch while my application runs in background?
Let's say I want to wait for a certain pixel to turn red (#FF0000), can I use GetPixel(x,y) to get the color and then simulate a screen touch event such as a swipe across the screen?
I tried to Google this but I've got nothing useful at all and now I'm quite desperate about this.
I had to search a bit for this. I was also looking for this solution.
NO ROOTING REQUIRED FOR THIS:
If you want to repeat a sequence of steps like fill a form, repeat game steps because redoing is boring, You can try : FREP Android App from Play Store(Link).
If you want to add conditional scenarios like, when you play Clash of Clans with home Wifi, turn data automatically and disable wifi ( Because Airtel Wifi in India is unpredictable and can make you loose the clan war!!) use, Macro Droid from Play Store.
You can try these as well:
Mahiro
Many apps are available based on Tasker like, Auto Input. You can maybe code/write macro to make personal solution with this Tasker App.

Resources