-
Notifications
You must be signed in to change notification settings - Fork 5.7k
phantomjs pretends to be a touch browser #10375
Comments
downch...@gmail.com commented:
|
brian.bu...@gmail.com commented:
|
|
lmjab...@gmail.com commented:
|
r...@electronicinsight.com commented:
|
vitaliy....@gmail.com commented:
|
julian.s...@gmail.com commented:
|
julian.s...@gmail.com commented:
|
vitaliy....@gmail.com commented:
|
julian.s...@gmail.com commented:
|
ariya.hi...@gmail.com commented:
|
julian.s...@gmail.com commented:
|
julian.s...@gmail.com commented:
|
ariya.hi...@gmail.com commented:
|
ariya.hi...@gmail.com commented:
|
julian.s...@gmail.com commented:
|
ariya.hi...@gmail.com commented:
|
julian.s...@gmail.com commented:
|
This is from ariya#408. See also issue ariya#10375 for some related discussion. ariya#10375
So we just ran into this problem as well. Do I understand the problem correctly that the reporting whether touch events are supported or not is decided during compile time of webkit and that this makes a runtime switch such as |
As a workaround you can detect the phantomjs browser and disable the touch test: if ('callPhantom' in window) {
Modernizr.touch = false;
} |
If I dont have control over the website, how can I disable touch as far as modernizr is concerned, is the only option to recompile? This would mean I would need two different binaries for different websites, one touch and one not? |
I would love to be able to optionally stub out the touchevents/touch to return true or false, to my liking for my Rspec feature specs. |
Needs this to be resolved. |
Starting from 2.5 version PhantomJS no more pretends itself as a browser with touch events support. |
Can any one provide 2.1.1 version for Ubuntu 14.04 which is disabled the touch events. |
brian.bu...@gmail.com commented:
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #375.
🌟 20 people had starred this issue at the time of migration.
The text was updated successfully, but these errors were encountered: