mobile

Javascript support for touch without blocking browsers pinch support

馋奶兔 提交于 2019-12-11 04:47:27
问题 I have a little web gallery that I added swipe navigation to for mobile browsers. I did it with pretty simple touchstart/touchmove/touchend event tracking. The problem is that when I try to pinch zoom in the browser window it fails if any finger starts in the element I added the touch event handlers to, I'm guessing from the calls to preventDefault. Is there a way I can track the touch events for navigating my images without blocking the zoom in and out feature of the browser? I don't mind

Create an OpenGL ES 2.0 context on a “standard” Linux system

纵饮孤独 提交于 2019-12-11 04:40:38
问题 I'm writing a game engine using opengl 3.3/SDL/glew/Linux (Ubuntu 11.04). I want to keep the possibility to deploy on mobile (OpenGL ES 2). This means that I have to stay somewhat OpenGL ES 2.0 compatible. Therefore my question is: Is it possible to create an OpenGL ES 2.0 context using SDL/(existing patch on SDL). 回答1: You don't need a GL ES 2.0 context on PC, you can use OpenGL 4.1, which has the GL_ARB_es2_compatibility , which adds the OpenGL ES functions that weren't in OpenGL, making

Why does Chrome for iOS insert image/webp content-type?

只谈情不闲聊 提交于 2019-12-11 04:34:56
问题 I have a mobile web app that is making an AJAX request via $.get(). The request succeeds for Safari iOS, but fails for Chrome for iOS with status 0 and statusText "error". Using tcpdump on my server, I can see that Safari sends/receives the following headers: Accept: */* (outgoing) Content-Type: text/plain;charset=ISO-8859-1 (returning) Chrome for iOS adds a mime type of "image/webp" to the outgoing Accept: header and the Content-Type returned is "image/webp": Accept: */*,image/webp (outgoing

com.hurlant.util.hex syntax error on air sdk 3.5

巧了我就是萌 提交于 2019-12-11 04:33:01
问题 I have an application written and compiled with an older version of flex sdk. Now i have to port this application to run on mobile devices, so i changed the sdk to air sdk 3.5. I'm using hurlant library for encryption/decryption. bu on Hex class there is a line that throws an error. if (hex.length&1==1) hex="0"+hex; I dont know what (hex.length&1==1) means. So how should i have to change the line or is there any other solutions for that problem? 回答1: I've seen that error too, it happens when

Installation of Adobe Air 3.7 SDK for Flex on Mac OS

谁说胖子不能爱 提交于 2019-12-11 04:31:44
问题 It sounds so simple and probably should be, but I just spend 3 hours trying to get the most basic setup running and I'm lost in the mess Adobe created. I followed a couple of tutorials and documents but none seem to be working. All I want is to generate a Flex for mobile project with the latest Air 3.7 SDK. I tried steps to replace the airsdk that is now deeply hidden in flashbuilders eclipse folders. That only allowed me to create an actionscript for mobile project with 3.7, but not a Flex

html5 to store greater than 50 mb worth of data?

删除回忆录丶 提交于 2019-12-11 04:19:56
问题 I am building a mobile app that must work in Blackberry, iPhone and Android phones. I am building this mobile app in HTML5, CSS and JQuery Mobile. Then I will use PhoneGap to allow the code to run as a native mobile app for the phone. The mobile app must be able to work without connection to the internet. The only time the app must require an internet connection is when it loads for the first time, because that's when the app will download over 50 MB worth of data. Next time the app has

Adding my app as a sharing option in the Youtube app

微笑、不失礼 提交于 2019-12-11 04:15:02
问题 Is it possible to add to the list of sharing apps my own app?. The idea is that users that have my app installed have the option to share YouTube videos to my app, so when they click the option my app opens and I receive something from it. 回答1: For Android: Filter incoming intents to your activity to catch the send intent: <activity ...> <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:host="www

Detect Desktop and redirect..?

做~自己de王妃 提交于 2019-12-11 04:14:10
问题 I want to redirect all the users to desktop site who try to browse mobile site in there desktop browsers ..!! i'm currently using <?php $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso

Display message from onEdit() in “Google Sheets” Android app

末鹿安然 提交于 2019-12-11 04:04:54
问题 I use onEdit() in Google Sheets to control users' activities. Google Sheets must work as on Desktop as on mobile device with Android. Everything works, but I can't to show any message at all on mobile device. Browser.msgBox() - don't work. Dialogs and Sidebars in G Suite Documents, example "Custom dialogs" and "Custom sidebars" work under Windows but don't work on mobile device too. Help please, somebody!!! As a last resort, how in script onEdit() to determine where Google Sheets was opened:

BX Slider and scrolling the page

三世轮回 提交于 2019-12-11 03:57:42
问题 I am using bxslider for a mobile site, horizontally scrolling images. The problem is that page is not scrolling if you touch bxslider. How can I catch the finger direction and scroll the page down ? thanks. 回答1: You can set the option touchEnabled to false. 来源: https://stackoverflow.com/questions/13845799/bx-slider-and-scrolling-the-page