mobile

How to make zoom-out on page or div on mobile

大城市里の小女人 提交于 2019-12-25 16:24:12
问题 I have problem with make site to be able to zoom out. When i set <meta name="viewport" content="width=device-width, initial-scale=1"> the page can be zoomed in but can`t be zoomed out. With adding maximum-scale and minimum scale I have the same problem. What should I do? My main goal is to is zoomable in and out (specially zoom-out) only one div (on mobile via gestures). Maybe somebody know where I can find script which do that or know the solution? 回答1: If understand you correctly, you want

Touch Events “touchstart” returns incorrect position on Mobile Safari. Workarounds?

青春壹個敷衍的年華 提交于 2019-12-25 12:26:08
问题 I am developing an HTML5 Canvas project and while adding multitouch support for mobile devices, I seem to have run into an issue on Mobile Safari in iOS 7.1. The main way that users interact with my app is by clicking and dragging. On the desktop, I add the appropriate mouse event listeners to my canvas... c.addEventListener('mousedown', mouseDown, false); c.addEventListener('mousemove', mouseMoved, false); c.addEventListener('mouseup', mouseUp, false); ... have these event handlers calculate

MVC 5 Application / Photo uploads work fine on desktop but not on mobile

纵饮孤独 提交于 2019-12-25 11:56:26
问题 I have a MVC application that has a Product model and multiple child images in an Image entity, which are uploaded to Azure Blob Storage. This all works great on desktop but will not work with a mobile browser. Just straight MVC, no Web API. Any ideas why the mobile browsers won't pass the selected image to the controller? I repeat: this works fine on a desktop with just about any browser... just not mobile. Model: public class Image { public int Id { get; set; } public string ImageGuid { get

Android Live Video Stream Not Playing

瘦欲@ 提交于 2019-12-25 10:02:14
问题 I am trying to stream a live feed in rtsp as such: String uri = "rtsp://54.213.167.253:5544/63a1203d-4e12-438e-86ec-f447fa90cfd7"; Uri uri_add = Uri.withAppendedPath(MediaStore.Video.Media.INTERNAL_CONTENT_URI, "1"); videoView.setVideoURI(uri_add.parse(uri)); mediaController = new MediaController(_context); videoView.setMediaController(mediaController); videoView.requestFocus(); videoView.start(); This works on an HTC, Sony, and LG device that I have tested with, however does not work on the

keypress event is not running on a mobile device

心已入冬 提交于 2019-12-25 09:34:48
问题 the problem I am having is that the event handler isn't running when the user types on mobile devices browsers. My javascript code working like this: When user write someting and press space javascript code automatically adding #(diez) tag for hashtag system. Like if you write: this is test message , javascript code change it like this: #this #is #test #message all after space. If you check this DEMO on your computer browser ( Chrome, Safari, Firefox, Opera ) it is working fine. But if you

Firefox OS App (timer) Background Execution

青春壹個敷衍的年華 提交于 2019-12-25 09:32:16
问题 I'm developing a Pomodoro Timer app for Firefox OS and I'm having a problem with the execution of it: Once the timer is running the execution is suspended every time the phone goes in low power mode (which is quite typical in my scenario, for the timer runs for 25mins) and is resumed only when the screen is turned on again . I searched for a way to prevent this, and according to Mozilla docs there are two APIs (Power Management and Idle) by which you could either: Prevent the screen from

How to lock rotation in z of my camera while rotating the camera by using mobile gyroscope input

戏子无情 提交于 2019-12-25 08:30:38
问题 I am rotating the camera in unity using gyroscope input, because I want the player to look around the x,y. However somehow there is also rotation in z. How do I keep the z rotation at 0, while at least remaining the smooth rotation in x and y I have now? Have been googling but haven't found any solutions which actually keep the z at 0. Here is the code I use for rotation, it's attached to the camera. private void Start() { _rb = GetComponent<Rigidbody>(); Input.gyro.enabled = true; } private

RSS update via sms

我只是一个虾纸丫 提交于 2019-12-25 08:25:06
问题 i was thinking about designing a service that can provide my subscribers feed updates whenever a new content gets added via sms. Can anybody please tell how to go about the implementation. 回答1: If you are looking for kind of free service, try the txtWeb.com They allow you to create SMS applications and integrate it with their SMS platform for free. So, what you have to do is, do the serverside coding in some language like PHP. Then integrate it with the txtWeb service. And your customers or

Redirect user to mobile version of site

元气小坏坏 提交于 2019-12-25 08:03:11
问题 How can i redirect users with older devices to a simplified (no css ) version of mobile site [ m.site.com ] , and newer devices like Iphone or Samsung Galaxy to a more modern one ? [sp.site.com ] 回答1: I would recommend feature detection. Test the features you need for the 'newer devices' and redirect to the older if there is a lack of support. You can test features using Modernizr redirection is as easy as: <script type="text/javascript"> <!-- window.location = "m.site.com" //--> </script> 来源

issue with input button

一曲冷凌霜 提交于 2019-12-25 07:49:07
问题 I have this search button that open a top bar on screen width less than 1080px but I have a problem on mobile with it... touching the button on mobile, the bar it doesn't appear here you have an example http://cosmoscreativeagency.com/alanic/index.html this is the functionality: on screen > 1080px: the white line appears clicking on the search button on screen <= 1080px: the white top search bar appears clicking on the search button and the white line is set as display: none snippet below: