Comments (11)
thanks for adding more feature, it now works on touch device, you guys did a great job
from ws-scrcpy.
You should be able to just click on the image to generate input events.
Have you tried original scrcpy, does it work?
from ws-scrcpy.
Yes , it work fine
But I need to use phone to control many emu.
so I very hope this software can work in my requirement...please
from ws-scrcpy.
So, you are using browser on a smartphone to open ws-scrcpy web page, is that correct?
I never tried to open it on a phone. I'm not sure that it's possible to use scroll/drag in ws-scrcpy on a common browser on a phone.
from ws-scrcpy.
YES!thst is I mean!
If web screen can fullscreen,maybe It will work fine?
I guess
from ws-scrcpy.
If look likes this
from ws-scrcpy.
I have a idea
If page design like this
maybe it will looks very wonderful!
and last fix the drag and scale problem
from ws-scrcpy.
I think that these lines inserted here should solve problem with drag (but I didn't test):
document.body.ondragstart = function(e: MouseEvent): void {
e.preventDefault();
e.stopPropagation();
};
P.S. Or adding draggable="false"
attribute to the elements.
from ws-scrcpy.
document.body.onmousedown = function(e: MouseEvent): void { down++; onMouseEvent(e); }; document.body.onmouseup = function(e: MouseEvent): void { onMouseEvent(e); down--; }; document.body.onmousemove = function(e: MouseEvent): void { onMouseEvent(e); }; document.body.ondragstart = function(e: MouseEvent): void { e.preventDefault(); e.stopPropagation(); }; this.hasListeners = true;
I insert them but nothing change QQ
draggable="false"
this IDK where can I insert ...
from ws-scrcpy.
I think that these lines inserted here should solve problem with drag (but I didn't test):
document.body.ondragstart = function(e: MouseEvent): void { e.preventDefault(); e.stopPropagation(); };P.S. Or adding
draggable="false"
attribute to the elements.
this did not work for me, please help with the working code
from ws-scrcpy.
document.body.onmousedown = function(e: MouseEvent): void { down++; onMouseEvent(e); }; document.body.onmouseup = function(e: MouseEvent): void { onMouseEvent(e); down--; }; document.body.onmousemove = function(e: MouseEvent): void { onMouseEvent(e); }; document.body.ondragstart = function(e: MouseEvent): void { e.preventDefault(); e.stopPropagation(); }; this.hasListeners = true;
I insert them but nothing change QQ
draggable="false"
this IDK where can I insert ...
did you get the solution?
from ws-scrcpy.
Related Issues (20)
- Not able to use remotelly HOT 1
- rotation HOT 3
- Embedding in a project
- error while setting up HOT 2
- Error when pull files from sdcard folder in "list files" HOT 4
- The service crashed because of an error HOT 2
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 8
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- unable to start project HOT 4
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.