If the Windows display zoom is set to 150%, the Electron app also appears zoomed. I want my app to avoid the windows zoom level and always display in 100% zoom only.
I have tried the zoomFactor:1 but it's not working.
As per #hijleh suggestion, adding the following lines in the main process has resolved the issue. The app is now avoiding the Windows display zoom.
app.commandLine.appendSwitch('high-dpi-support', 1)
app.commandLine.appendSwitch('force-device-scale-factor', 1)
Related
Is there a way in Chrome and Safari on iOS to restrict scrolling to one direction at a time? In other words, if I start scrolling an element vertically, I want to turn off the user's ability to scroll horizontally until the vertical scrolling is complete. And vice versa.
In iOS native code this is called directionalLockEnabled, and in Microsoft browsers it's -ms-scroll-rails.
Does something like this exist in CSS that Chrome for iOS (or Safari for iOS, because they use the same rendering engine under the hood) will recognize?
If not, is there a javascript solution available, ideally a React-compatible npm package?
If you're after a pure CSS solution, unfortunately there is nothing in the spec for locking scroll to a single axis at a time.
There are some great points on this thread, including some vanilla JS solutions if your use case requires locking the scroll behaviour to one axis at a time.
In my application there is a chat where if the user scrolls up, more chat messages will be loaded. I use ionic's default "infinite scroll" (position = 'top') component to detect when the user has reached the top of the page to load more messages into the array. On the browser and on android this works very well with a threshold of (50% or 550px), but on iOS (native device and emulator) I get a weird issue that can be seen through the image. The red represents the part of the screen the user sees and the black represents the total scroll length. As seen in iOS since the scroll view shoots to the top, it triggers the infinite scroll many times from one call, which is not ideal. It also creates a poor user experience with the screen jumping to the top and not being able to follow the previous messages. I've tried disabling scrolling but that did not work. iOS also does not seem to detect the infinite-scroll threshold and only triggers when at the top of the scroll-view. I also tried upgrading to WKWebView, but that did not solve this issue.
Platform Info:
ionic-angular: 3.20.0
ios platform: 4.5.4
Without seeing any code, it seems like you're probably pushing the loaded data to the end of your list rather than adding it the beginning. You want to do:
this.chatMessages = [ ...newContent, ...this.chatMessage ];
Are you manage to solve this ?
Mine scenario is
1- after scroll top
2- infinite scroll is activate and call the ionInfinite method.
3- result added to array list
4- automatic trigger scroll again
5- and repeat step 2-4 until.
i have issue with zoomed display.
on IOS until today i did not see any changes on my apps when user turn on zoom display .
now i developing an application, use auto layout constraints like always ,
but this is the first time that i saw that when user change setting to zoom display zoomed mode all my app get zoomed and the resolution get messy.
i tried every thing to understand the difference and stil get nothing.
i want to ignore the zoom, that the app act like normal mode,
is this possible?
You can't ignore the scaling... I think adding proper launchscreen file in your target settings may solve your problem.
I am currently working on a medium size graph in gephi (5k nodes, 25k edges);
Whenever I click on "Center on Graph" button, the Zoom slider stops working. If the file is saved in this situation, this error stays even after reopening Gephi.
Closing this graph file and opening other file makes the Zoom starting working again.
Is there a way to fix the Zoom slider? If not, any workaround to zoom in and out without the slider? (for instance, using the script console...)
After doing some tests, I realized that an easy way to fix the problem is using the mouse wheel.
It changes the zoom level, and also fix the zoom slider.
I am creating one application where I required to control the camera controls via my app such as camera capture, camera zoom in, zoom out, flash on/ off and so on.
Normally, in iPhone, API are available which can control the execution of hardware. I have tried to achieve same in windows phone 7 using silverlight. I have found the code to control the camera on event via code but not able to find any thing so that via button or slider, I can zoom in, zoom out.
I tried the reference video http://channel9.msdn.com/Shows/Inside+Windows+Phone/Inside-Windows-Phone-16-Mango-Camera-APIs and downloaded the code but still not found anything specific.
My question is that is it possible in windows phone 7 to have this feature and if so can anyone please guide me for this?
I also found one thing where when the camera is open, the images are coming in reverse direction :)
Please help me out of this.
Thanks,
David.
To zoom, you have to manually process the image.
You will need to add your own + and - zoom buttons and keep track of the zoom level.
Then, to show a zoomed viewfinder, you need to get the previewbuffer in a loop and zoom the image yourself to the current zoom level and then display it.
When the user takes a picture, you will apply the same zoom processing to the image in the CaptureImageAvailable event handler before saving.