Monday, March 5, 2018

Disable bouncing scroll in Safari on touch device.

Add next code in your main page.
document.ontouchmove = function(event){
  event.preventDefault();
}
Or use this solution.
https://github.com/timbartsch/no-bounce

Tuesday, January 16, 2018

Install pip on macOS

Run next command.
sudo easy_install pip

Tuesday, January 2, 2018

Solve problem double click not working on macOS High Sierra

In short this problem occur from double click speed.
Go to "Accessibility" in System Preference.
Down double click speed to half value in Mouse & Trackpad.
I can't understand why that value was maximum as default.

Get screenshot without drop shadow on macOS High Sierra

Press the next keys.
CMD + SHIFT + 4
And press space key.
You can see capture frame for getting screenshot of specific windows.
Now, click left mouse on the capture frame with press hold ALT key.
Then you can get screenshot without drop shadow like next picture.

Wednesday, December 20, 2017

Downgrade npm to v4 for developing React Native

Run next command.
npm install -g npm@4

Friday, December 15, 2017

Bluetooth keyboard shortcut on iOS 11

Spotlight search.
CMD + Space

Change keyboard language.
CTRL + Space

Go to home.
CMD + H

Volume up/down.
F12/F13

Mute Volume.
F11

Wednesday, December 13, 2017

Align center tab in Ant Design

Add next style option to the tab component.
tabBarStyle={{textAlign: 'center'}}